feat: add environment variables for Go caching in CI workflow
Some checks failed
CI / test (push) Successful in 26s
CI / build-ha-gateway (push) Failing after 2m28s
CI / build-discord-bot (push) Failing after 7s

This commit is contained in:
Nik Afiq 2026-04-06 20:37:50 +09:00
parent 854f19c11b
commit 066224715a

View File

@ -10,6 +10,9 @@ on:
env: env:
REGISTRY: gitea.nik4nao.com REGISTRY: gitea.nik4nao.com
IMAGE_PREFIX: gitea.nik4nao.com/nik IMAGE_PREFIX: gitea.nik4nao.com/nik
GOPATH: /tmp/go
GOMODCACHE: /tmp/go/pkg/mod
GOCACHE: /tmp/go-build
jobs: jobs:
test: test:
@ -17,6 +20,9 @@ jobs:
steps: steps:
- uses: actions/checkout@v6 - uses: actions/checkout@v6
- name: prepare go cache dirs
run: mkdir -p "$GOMODCACHE" "$GOCACHE"
- uses: actions/setup-go@v6 - uses: actions/setup-go@v6
with: with:
go-version-file: go.work go-version-file: go.work