name: Rust on: push: branches: [ "main" ] pull_request: branches: [ "main" ] env: CARGO_TERM_COLOR: always SQLX_OFFLINE: "true" jobs: build: runs-on: nixos steps: - name: Install node run: nix-env -iA nixpkgs.nodejs - uses: actions/checkout@v4 - name: Install cargo run: nix-env -A nixos.cargo - name: Formatting run: cargo fmt --all -- --check - name: Build local version run: cargo build --verbose - name: Build OIDC version run: cargo build --verbose --no-default-features --features oidc - name: Run tests run: cargo test --verbose