Merge pull request #326 from worldfnd/px/test-claude-review #1531
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: Cargo Build & Test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUST_BACKTRACE: 1 | |
| # When a new job is pushed on a PR, cancel the old one. | |
| concurrency: | |
| group: > | |
| ci-${{ github.event_name == 'pull_request' | |
| && format('pr-{0}', github.event.pull_request.number) | |
| || format('push-{0}', github.ref) }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| jobs: | |
| build_and_test: | |
| name: Build and test | |
| runs-on: ubuntu-24.04-arm | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup rust toolchain, cache and bins | |
| uses: moonrepo/setup-rust@v1 | |
| with: | |
| channel: nightly-2026-03-04 | |
| cache-base: main | |
| components: rustfmt, clippy | |
| - run: cargo fmt --all --check | |
| - run: cargo clippy --all-targets --all-features --verbose | |
| - run: cargo build --all-targets --all-features --verbose | |
| - run: cargo test --no-fail-fast --all-features --verbose --lib --tests --bins | |
| - run: cargo test --doc --all-features --verbose | |
| - run: cargo doc --workspace --all-features --no-deps --document-private-items | |
| env: | |
| RUSTDOCFLAGS: "--cfg doc_cfg -D warnings" |