test(checks): add negative cases and fix tautological assertions #367
Workflow file for this run
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: | |
| branches: [main] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| ci: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@1.74 | |
| - name: Format | |
| run: cargo fmt --all -- --check | |
| - name: Clippy | |
| run: cargo clippy --workspace -- -D warnings | |
| - name: Test | |
| run: cargo test --workspace | |
| - name: Build | |
| run: cargo build --workspace --release | |
| - name: Check test-contracts fixtures | |
| run: | | |
| set -e | |
| for d in test-contracts/*/; do | |
| if [ -f "$d/Cargo.toml" ]; then | |
| echo "::group::cargo check $d" | |
| (cd "$d" && cargo check) | |
| echo "::endgroup::" | |
| fi | |
| done |