Merge pull request #714 from jiyiola396-pixel/fix/issue-656-657-contr… #93
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: Contract CI | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'contracts/**' | |
| - '.github/workflows/contract-ci.yml' | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - 'contracts/**' | |
| - '.github/workflows/contract-ci.yml' | |
| jobs: | |
| contract: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: contracts | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| # Change this from 1.84 to 'stable' to support Edition 2024 | |
| toolchain: stable | |
| targets: wasm32v1-none | |
| components: clippy, rustfmt | |
| - name: Build Contracts | |
| run: cargo build --target wasm32v1-none --release | |
| - name: Test | |
| run: cargo test | |
| - name: Clippy | |
| run: cargo clippy --all-targets -- -D warnings | |
| - name: Format check | |
| run: cargo fmt --all -- --check |