From 2dd049ea774cce3710488b20e873bdff4c3560c8 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Wed, 29 May 2024 18:05:05 +0200 Subject: [PATCH] ci: add devshell with Node.js for forgejo actions --- .forgejo/workflows/check.yml | 4 ++++ flake.nix | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/.forgejo/workflows/check.yml b/.forgejo/workflows/check.yml index 0b9c405..9380354 100644 --- a/.forgejo/workflows/check.yml +++ b/.forgejo/workflows/check.yml @@ -5,6 +5,10 @@ jobs: Check: runs-on: self-hosted steps: + - name: Enter ci devshell + run: | + nix --accept-flake-config --access-tokens '' develop .#ci + - name: Check out repository code uses: https://code.forgejo.org/actions/checkout@v4 diff --git a/flake.nix b/flake.nix index 0f6d830..44b3474 100644 --- a/flake.nix +++ b/flake.nix @@ -91,6 +91,11 @@ jq ]; }; + devShells.ci = pkgs.mkShell { + buildInputs = with pkgs; [ + nodejs + ]; + }; }; flake =