test: extend reentrancy tests to remaining functions (#8) #27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |