mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
All workflows where it's remotely useful now trigger on a pull_request event when the workflow file itself is changed. This gives us basic sanity testing of changes to workflow files itself and reduces the need for manual tests in forks.
34 lines
838 B
YAML
34 lines
838 B
YAML
name: "Building Nixpkgs lib-tests"
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- .github/workflows/lib-tests.yml
|
|
pull_request_target:
|
|
paths:
|
|
- 'lib/**'
|
|
- 'maintainers/**'
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
get-merge-commit:
|
|
uses: ./.github/workflows/get-merge-commit.yml
|
|
|
|
nixpkgs-lib-tests:
|
|
name: nixpkgs-lib-tests
|
|
runs-on: ubuntu-24.04
|
|
needs: get-merge-commit
|
|
if: needs.get-merge-commit.outputs.mergedSha
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
ref: ${{ needs.get-merge-commit.outputs.mergedSha }}
|
|
|
|
- uses: cachix/install-nix-action@526118121621777ccd86f79b04685a9319637641 # v31
|
|
with:
|
|
extra_nix_config: sandbox = true
|
|
|
|
- name: Building Nixpkgs lib-tests
|
|
run: |
|
|
nix-build ci -A lib-tests
|