1name: "Check whether nix files are parseable v2"
2
3on:
4 pull_request:
5 paths:
6 - .github/workflows/nix-parse-v2.yml
7 pull_request_target:
8
9permissions: {}
10
11jobs:
12 get-merge-commit:
13 uses: ./.github/workflows/get-merge-commit.yml
14
15 tests:
16 name: nix-files-parseable-check
17 runs-on: ubuntu-24.04-arm
18 needs: get-merge-commit
19 if: "needs.get-merge-commit.outputs.mergedSha && !contains(github.event.pull_request.title, '[skip treewide]')"
20 steps:
21 - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
22 with:
23 ref: ${{ needs.get-merge-commit.outputs.mergedSha }}
24
25 - uses: cachix/install-nix-action@526118121621777ccd86f79b04685a9319637641 # v31
26 with:
27 extra_nix_config: sandbox = true
28 nix_path: nixpkgs=channel:nixpkgs-unstable
29
30 - name: Parse all nix files
31 run: |
32 # Tests multiple versions at once, let's make sure all of them run, so keep-going.
33 nix-build ci -A parse --keep-going