From 5f64b572667072f33e09188e5b009aab674522d1 Mon Sep 17 00:00:00 2001 From: goose Date: Thu, 12 Mar 2026 08:45:31 -0300 Subject: [PATCH] fix(ci): install Node.js before checkout action The CI was failing because the rust:latest container doesn't have Node.js, but the actions/checkout@v4 action requires Node.js to run. Error: 'exec: node: executable file not found in /home/asoliver/.local/bin/:/home/asoliver/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/home/asoliver/.local/share/flatpak/exports/bin:/var/lib/flatpak/exports/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/lib/rustup/bin' Solution: - Install Node.js before running checkout action - For rust:latest containers: use NodeSource repository - For docker:latest containers: use apk package manager This allows the GitHub Actions checkout action to work in Forgejo. --- .forgejo/workflows/lint-and-build.yml | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/lint-and-build.yml b/.forgejo/workflows/lint-and-build.yml index f864442..7113d8b 100644 --- a/.forgejo/workflows/lint-and-build.yml +++ b/.forgejo/workflows/lint-and-build.yml @@ -21,7 +21,13 @@ jobs: container: image: rust:latest steps: - - name: Checkout code + - name: Install Node.js + run: | + apt-get update && apt-get install -y curl + curl -fsSL https://deb.nodesource.com/setup_20.x | bash - + apt-get install -y nodejs + + - name: Checkout repository uses: actions/checkout@v4 - name: Install dependencies @@ -45,7 +51,13 @@ jobs: image: rust:latest needs: lint steps: - - name: Checkout code + - name: Install Node.js + run: | + apt-get update && apt-get install -y curl + curl -fsSL https://deb.nodesource.com/setup_20.x | bash - + apt-get install -y nodejs + + - name: Checkout repository uses: actions/checkout@v4 - name: Install dependencies @@ -72,7 +84,11 @@ jobs: docker: image: docker:dind steps: - - name: Checkout code + - name: Install Node.js + run: | + apk add --no-cache nodejs npm + + - name: Checkout repository uses: actions/checkout@v4 - name: Build Docker image