fix: install Go and Node in CI verify job (runner-slim is Alpine, lacks toolchain)
This commit is contained in:
@@ -12,6 +12,20 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Check out source
|
- name: Check out source
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Test Go
|
||||||
run: go test ./...
|
run: go test ./...
|
||||||
- name: Install frontend dependencies
|
- name: Install frontend dependencies
|
||||||
|
|||||||
Reference in New Issue
Block a user