From 198c835c5030a3fd80084712542cfc191a556c77 Mon Sep 17 00:00:00 2001 From: HendrikRauh <114620133+HendrikRauh@users.noreply.github.com> Date: Fri, 6 Mar 2026 14:49:23 +0100 Subject: [PATCH] fix(workflow): checkout before local action and remove nested checkout Add top-level `actions/checkout` to jobs so local action files are available, and remove redundant checkout from `install-nix` composite action. Prewarm flake devShell remains in the action. --- .github/actions/install-nix/action.yml | 12 ++++++++++-- .github/workflows/check.yml | 6 ++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/actions/install-nix/action.yml b/.github/actions/install-nix/action.yml index 60d3444..f023cc4 100644 --- a/.github/actions/install-nix/action.yml +++ b/.github/actions/install-nix/action.yml @@ -3,8 +3,16 @@ description: Composite action to checkout the repo and install Nix with flakes e runs: using: composite steps: - - name: Checkout - uses: actions/checkout@v5 + - name: Install Nix + uses: cachix/install-nix-action@v31 + with: + extra_nix_config: | + experimental-features = nix-command flakes + - name: Prewarm flake devShell + run: | + # use the flake devShell defined in ./flake.nix to fetch deps + nix develop --command true + shell: bash - name: Install Nix uses: cachix/install-nix-action@v31 diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 4f3f22e..2cfcd9a 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -11,6 +11,9 @@ jobs: lint: runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@v5 + - name: Setup checkout + Nix uses: ./.github/actions/install-nix @@ -23,6 +26,9 @@ jobs: build: runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@v5 + - name: Setup checkout + Nix uses: ./.github/actions/install-nix