From b47354725fb0cd2f0a2a132dce5b0e8f657e8174 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Fri, 29 Nov 2024 22:37:40 +0100 Subject: [PATCH] ci/eval: test aliases Aliases do not add new packages, so basic evaluation with nix-env should be enough and fairly quick. --- .github/workflows/eval.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/eval.yml b/.github/workflows/eval.yml index 280ed141576c..ed3e266d201d 100644 --- a/.github/workflows/eval.yml +++ b/.github/workflows/eval.yml @@ -59,6 +59,24 @@ jobs: name: paths path: result/* + eval-aliases: + name: Eval nixpkgs with aliases enabled + runs-on: ubuntu-latest + needs: attrs + steps: + - name: Check out the PR at the test merge commit + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + ref: ${{ needs.attrs.outputs.mergedSha }} + path: nixpkgs + + - name: Install Nix + uses: cachix/install-nix-action@08dcb3a5e62fa31e2da3d490afc4176ef55ecd72 # v30 + + - name: Query nixpkgs with aliases enabled to check for basic syntax errors + run: | + time nix-env -I ./nixpkgs -f ./nixpkgs -qa '*' --option restrict-eval true --option allow-import-from-derivation false >/dev/null + outpaths: name: Outpaths runs-on: ubuntu-latest