From d90c039c51639fb3f5cee86727086b9993572d23 Mon Sep 17 00:00:00 2001 From: Hermes Date: Tue, 14 Jul 2026 10:16:03 -0300 Subject: [PATCH] fix: install Go and Node in CI verify job (runner-slim is Alpine, lacks toolchain) --- .gitea/workflows/main.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.gitea/workflows/main.yaml b/.gitea/workflows/main.yaml index 289a789..b1581dd 100644 --- a/.gitea/workflows/main.yaml +++ b/.gitea/workflows/main.yaml @@ -12,6 +12,20 @@ jobs: steps: - name: Check out source uses: actions/checkout@v4 + - name: Install Go and Node toolchain + run: | + apk add --no-cache nodejs npm + # Try the packaged Go first; fall back to the official tarball if it's < 1.24 + apk add --no-cache go 2>/dev/null || true + if ! go version 2>/dev/null | grep -qE "go1\.(2[4-9]|[3-9][0-9])"; then + apk add --no-cache wget + wget -q https://go.dev/dl/go1.24.5.linux-amd64.tar.gz -O /tmp/go.tgz + rm -rf /usr/local/go && tar -C /usr/local -xzf /tmp/go.tgz + ln -sf /usr/local/go/bin/go /usr/bin/go + fi + go version + node --version + npm --version - name: Test Go run: go test ./... - name: Install frontend dependencies