diff --git a/.github/workflows/eval-lib-tests.yml b/.github/workflows/eval-lib-tests.yml new file mode 100644 index 0000000000000..4b1aaa4143565 --- /dev/null +++ b/.github/workflows/eval-lib-tests.yml @@ -0,0 +1,26 @@ +name: "Evaluate NixOS lib-tests" + +permissions: + contents: read + +on: + pull_request_target: + paths: + - 'nixos/**' + +jobs: + nixos: + name: nixos-options + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + # pull_request_target checks out the base branch by default + ref: refs/pull/${{ github.event.pull_request.number }}/merge + - uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30 + with: + # explicitly enable sandbox + extra_nix_config: sandbox = true + - name: Evaluating NixOS lib-tests + run: | + nix-build --arg pkgs import ./. {} ./lib/tests/release.nix