name: Rust checks on: push: pull_request: jobs: check: runs-on: ubuntu-latest container: node:22-bookworm steps: - name: Checkout uses: https://github.com/actions/checkout@v4 - name: Install runner prerequisites run: | apt-get update apt-get install -y --no-install-recommends sudo - name: Install Nix uses: https://github.com/cachix/install-nix-action@v31 with: enable_kvm: false - name: Formatting run: nix develop --no-update-lock-file -c cargo fmt --all -- --check - name: Compilation run: nix develop --no-update-lock-file -c cargo check --all-targets --locked - name: Tests run: nix develop --no-update-lock-file -c cargo test --all-targets --locked - name: Release tests run: nix develop --no-update-lock-file -c cargo test --all-targets --release --locked - name: Clippy run: nix develop --no-update-lock-file -c cargo clippy --all-targets --locked