Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1name: "Building Nixpkgs lib-tests"
2
3on:
4 pull_request:
5 paths:
6 - .github/workflows/lib-tests.yml
7 pull_request_target:
8 paths:
9 - 'lib/**'
10 - 'maintainers/**'
11
12permissions: {}
13
14jobs:
15 get-merge-commit:
16 uses: ./.github/workflows/get-merge-commit.yml
17
18 nixpkgs-lib-tests:
19 name: nixpkgs-lib-tests
20 runs-on: ubuntu-24.04
21 needs: get-merge-commit
22 if: needs.get-merge-commit.outputs.mergedSha
23 steps:
24 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25 with:
26 ref: ${{ needs.get-merge-commit.outputs.mergedSha }}
27
28 - uses: cachix/install-nix-action@526118121621777ccd86f79b04685a9319637641 # v31
29 with:
30 extra_nix_config: sandbox = true
31
32 - name: Building Nixpkgs lib-tests
33 run: |
34 nix-build ci -A lib-tests