name: nix on: [push, pull_request] permissions: {} jobs: nix: if: github.repository == 'Swatinem/rust-cache' strategy: fail-fast: false matrix: os: [ubuntu-latest, macos-latest] name: Test Nix on ${{ matrix.os }} runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - uses: cachix/install-nix-action@630ae543ea3a38a9a4166f03376c02c50f408342 # v31.11.0 - uses: ./ with: workspaces: tests cmd-format: nix develop ./tests -c {0} - run: | nix develop -c cargo check nix develop -c cargo test working-directory: tests