Merge pull request #429 from plebhash/2026-04-14-version-bumps #607
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: Tests | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| test: | |
| name: Test Suite | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install capnp dependencies (Ubuntu) | |
| if: matrix.os == 'ubuntu-latest' | |
| run: sudo apt-get install -y capnproto libcapnp-dev | |
| - name: Install capnp dependencies (macOS) | |
| if: matrix.os == 'macos-latest' | |
| run: brew install capnp | |
| - name: Cache cargo registry | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cargo/registry | |
| key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} | |
| - name: Cache cargo index | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cargo/git | |
| key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} | |
| - name: Cache cargo build | |
| uses: actions/cache@v4 | |
| with: | |
| path: target | |
| key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@1.85 | |
| - name: Test stratum-apps workspace | |
| run: cargo test --manifest-path=stratum-apps/Cargo.toml --all-features | |
| - name: Test pool | |
| run: cargo test --manifest-path=pool-apps/pool/Cargo.toml | |
| - name: Test jd-server (separate workspace) | |
| run: cargo test --manifest-path=pool-apps/jd-server/Cargo.toml | |
| - name: Test miner applications workspace | |
| run: cargo test --manifest-path=miner-apps/Cargo.toml | |
| - name: Test bitcoin-core-sv2 crate | |
| run: cargo test --manifest-path=bitcoin-core-sv2/Cargo.toml |