fix: install Go and Node in CI verify job (runner-slim is Alpine, lacks toolchain)
Some checks failed
Build and deploy Havenllo / Verify Go and frontend (push) Failing after 38s
Build and deploy Havenllo / Build and push image (push) Has been skipped
Build and deploy Havenllo / Apply and restart Havenllo (push) Has been skipped

This commit is contained in:
Hermes
2026-07-14 10:16:03 -03:00
parent 041c3fab4b
commit d90c039c51

View File

@@ -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