From ea3349011b72a83fdd29e8df0029c84935d93753 Mon Sep 17 00:00:00 2001 From: pedro-bento Date: Sun, 4 Oct 2026 21:25:49 +0100 Subject: [PATCH] ci: run frontend-build in the python+node container, drop setup-node actions/setup-node@v4 downloads Node from github.com (~4m43s) and then tries the GitHub artifact-cache service, which the Forgejo act runner does not provide (reserveCache/restoreCache -> connect ETIMEDOUT 172.27.0.4:41759). The nikolaik/python-nodejs container already ships Node 20 + npm + git, so removing setup-node and using the container fixes the timeouts and cuts the frontend job from ~9m47s to well under a minute. --- .github/workflows/ci.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8660be5..65e8452 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,16 +27,18 @@ jobs: frontend-build: runs-on: ubuntu-latest + # Same reason as backend-tests: the Forgejo runner cannot use + # actions/setup-node's Node download + GitHub artifact-cache service (both + # time out against the act runner: "connect ETIMEDOUT ...:41759"), and + # actions/setup-python cannot provision 3.11 either. This container already + # ships Node 20 + npm + git, so actions/checkout works and setup-node is + # dropped entirely. + container: nikolaik/python-nodejs:python3.11-nodejs20 defaults: run: working-directory: dashboard steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: "20" - cache: npm - cache-dependency-path: dashboard/package-lock.json - name: Install dependencies run: npm ci - name: Build