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:
parent
163e810858
commit
f9a44c22ec
1 changed files with 2 additions and 0 deletions
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue