Skip to content

test: extend reentrancy tests to remaining functions (#8) #27

test: extend reentrancy tests to remaining functions (#8)

test: extend reentrancy tests to remaining functions (#8) #27

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32v1-none
components: rustfmt, clippy
- name: Cache cargo
uses: Swatinem/rust-cache@v2
- name: Check formatting
run: cargo fmt --check
- name: Lint shell scripts
run: shellcheck scripts/*.sh
# demo-consumer imports tholos's compiled wasm at compile time
# (contractimport!), so it must exist before anything below this
# touches demo-consumer: clippy and test both compile it.
- name: Build tholos wasm
run: cargo build -p tholos --target wasm32v1-none --release
- name: Run clippy
run: cargo clippy --workspace --all-targets -- -D warnings
- name: Run tests
run: cargo test --workspace
- name: Build contract wasm
run: cargo build --workspace --target wasm32v1-none --release