From dfaa9b8b480566ed7ecac4f5dbb64a511a5a179b Mon Sep 17 00:00:00 2001 From: Maximilian Jugl Date: Wed, 22 Apr 2026 09:43:26 +0200 Subject: [PATCH] fix(ci): install node on alpine image --- .forgejo/workflows/test.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.forgejo/workflows/test.yaml b/.forgejo/workflows/test.yaml index 3fdbae6..2b02b0a 100644 --- a/.forgejo/workflows/test.yaml +++ b/.forgejo/workflows/test.yaml @@ -23,6 +23,19 @@ jobs: container: image: ${{ matrix.image }} steps: + - name: Install Node (Alpine only) + shell: sh + run: | + set -e + + if ! command -v node >/dev/null 2>&1; then + if command -v apk >/dev/null 2>&1; then + apk add --no-cache nodejs + else + echo "::error::Node.js cannot be installed for this environment." + exit 1 + fi + fi - uses: actions/checkout@v6 - name: Test action uses: ./