Skip to content

Commit

Permalink
ci: fix Go version selection
Browse files Browse the repository at this point in the history
k8s v1.29 depends on Go 1.21.3 or later. Without an explicit
go-version-file: go.mod with 'go 1.21.3' we are seeing failures
in different CI steps.

Make sure all setup-go workflows use Go version from go.mod.

Signed-off-by: Mikko Ylinen <[email protected]>
  • Loading branch information
mythi committed Nov 6, 2023
1 parent d295ede commit 29b8eb7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/lib-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
check-latest: true
- run: make -e vendor
- name: Build image
env:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lib-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
check-latest: true
- run: make -e vendor
- name: Build image
env:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lib-validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
check-latest: true
- name: Install envtest and k8s control plane
run: |
go install sigs.k8s.io/controller-runtime/tools/setup-envtest@latest
Expand Down

0 comments on commit 29b8eb7

Please sign in to comment.