Skip to content

Commit

Permalink
Use cache-dependency-path in actions/setup-go for CI workflow (kubefl…
Browse files Browse the repository at this point in the history
…ow#2355)

Signed-off-by: forsaken628 <forsaken628@gmail.com>
  • Loading branch information
forsaken628 authored and Shashank Mittal committed Jun 19, 2024
1 parent 4149f22 commit a52e35d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test-go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
uses: actions/setup-go@v5
with:
go-version-file: ${{ env.GOPATH }}/src/github.com/kubeflow/katib/go.mod
cache-dependency-path: ${{ env.GOPATH }}/src/github.com/kubeflow/katib/go.sum

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

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

0 comments on commit a52e35d

Please sign in to comment.