Cleanup #19
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: Test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUST_BACKTRACE: 1 | |
| jobs: | |
| rust-test: | |
| name: Rust Tests | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: nix develop .#rust --command bash -e {0} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: cachix/install-nix-action@v31 | |
| with: | |
| extra_nix_config: | | |
| experimental-features = nix-command flakes | |
| - name: Cache cargo | |
| uses: Swatinem/rust-cache@v2 | |
| with: | |
| workspaces: extractor | |
| - name: Check formatting | |
| run: cargo fmt --check | |
| working-directory: extractor | |
| - name: Clippy | |
| run: cargo clippy -- -D warnings | |
| working-directory: extractor | |
| - name: Build | |
| run: cargo build --release | |
| working-directory: extractor | |
| - name: Test | |
| run: cargo test | |
| working-directory: extractor | |
| msrv: | |
| name: MSRV Check (Rust 1.82) | |
| runs-on: ubuntu-latest | |
| # Not via nix: the dev shell tracks nixpkgs' rustc, this pins the floor. | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@1.82.0 | |
| - run: cargo build | |
| working-directory: extractor |