Skip to content

Commit 0076cdf

Browse files
forsaken628shashank-iitbhu
authored andcommitted
Use cache-dependency-path in actions/setup-go for CI workflow (kubeflow#2355)
Signed-off-by: forsaken628 <[email protected]>
1 parent 857daa0 commit 0076cdf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/test-go.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
uses: actions/setup-go@v5
2929
with:
3030
go-version-file: ${{ env.GOPATH }}/src/github.com/kubeflow/katib/go.mod
31+
cache-dependency-path: ${{ env.GOPATH }}/src/github.com/kubeflow/katib/go.sum
3132

3233
- name: Check Go Modules, Generated Go/Python codes, and Format
3334
run: make check
@@ -50,6 +51,7 @@ jobs:
5051
uses: actions/setup-go@v5
5152
with:
5253
go-version-file: ${{ env.GOPATH }}/src/github.com/kubeflow/katib/go.mod
54+
cache-dependency-path: ${{ env.GOPATH }}/src/github.com/kubeflow/katib/go.sum
5355

5456
- name: Run Go test
5557
run: go mod download && make test ENVTEST_K8S_VERSION=${{ matrix.kubernetes-version }}

0 commit comments

Comments
 (0)