fix(backend): stabilize websocket gateway CI integration #1
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, develop] | |
| paths: | |
| - "apps/onchain/**" | |
| - ".github/workflows/contract-ci.yml" | |
| pull_request: | |
| branches: [main, develop] | |
| paths: | |
| - "apps/onchain/**" | |
| - ".github/workflows/contract-ci.yml" | |
| jobs: | |
| test: | |
| name: Test Suite | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: apps/onchain | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| toolchain: stable | |
| components: rustfmt, clippy | |
| targets: wasm32-unknown-unknown | |
| - name: Add wasm target | |
| run: rustup target add wasm32-unknown-unknown | |
| - name: Cache dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: "apps/onchain" | |
| - name: Check formatting | |
| run: cargo fmt --all -- --check | |
| - name: Run clippy | |
| run: cargo clippy --all-targets --all-features -- -D warnings | |
| - name: Run tests | |
| run: cargo test |