1
0
Fork 0
mirror of https://github.com/imjasonh/git-k8s synced 2026-07-10 15:41:54 +00:00

Enable Go module and build caching in CI

Add cache-dependency-path: go.mod to both setup-go steps so that
actions/setup-go caches ~/go/pkg/mod and ~/.cache/go-build across
runs. Since go.sum is not checked in, go.mod is used as the cache key.

https://claude.ai/code/session_011joWLHyHc8v7nDfpNoWkEY
This commit is contained in:
Claude 2026-02-28 04:18:53 +00:00
parent 163e810858
commit f9a44c22ec
No known key found for this signature in database

View file

@ -17,6 +17,7 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache-dependency-path: go.mod
- name: Go mod tidy
run: go mod tidy
@ -47,6 +48,7 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache-dependency-path: go.mod
- name: Setup KinD
id: kind