Fix/bound pause reason #70
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
| # ============================================================================= | |
| # ApexChainx Contracts — CI Pipeline | |
| # ============================================================================= | |
| # | |
| # Triggered on push/PR to main. Essential checks: | |
| # 1. Formatting (rustfmt) | |
| # 2. Linting (clippy) | |
| # 3. Build (cargo build) | |
| # 4. Tests (cargo test) | |
| # ============================================================================= | |
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| name: Build, Test & Verify | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt, clippy | |
| - name: Cache Cargo dependencies | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: apexchainx_calculator | |
| - name: Check formatting | |
| run: cargo fmt --manifest-path apexchainx_calculator/Cargo.toml -- --check | |
| - name: Clippy linting | |
| run: cargo clippy --manifest-path apexchainx_calculator/Cargo.toml | |
| - name: Build | |
| run: cargo build --manifest-path apexchainx_calculator/Cargo.toml | |
| - name: Run tests | |
| run: cargo test --manifest-path apexchainx_calculator/Cargo.toml |