Skip to content

Commit

Permalink
ci: add Nixpkgs lib-tests workflow
Browse files Browse the repository at this point in the history
Ofborg also does this.
Should be run on `lib/*` dirs

Signed-off-by: John Titor <[email protected]>
  • Loading branch information
JohnRTitor committed Dec 5, 2024
1 parent 048fa4f commit 16b7e6c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/eval-lib-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Building Nixpkgs lib-tests"

permissions:
contents: read

on:
pull_request_target:
paths:
- 'lib/**'
jobs:
nixpkgs:
name: nixpkgs-lib-tests
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: Building Nixpkgs lib-tests
run: |
nix-build --arg pkgs "(import ./ci/. {}).pkgs" ./lib/tests/release.nix

0 comments on commit 16b7e6c

Please sign in to comment.