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 <[email protected]>
  • Loading branch information
forsaken628 authored and shashank-iitbhu committed Jun 30, 2024
1 parent b81eeb7 commit f51a2d3
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 f51a2d3

Please sign in to comment.