Skip to content

Commit

Permalink
Merge pull request #16550 from justinsb/githubactions_source_go_versi…
Browse files Browse the repository at this point in the history
…on_from_gomod

tests: use version from go.mod in github actions
  • Loading branch information
k8s-ci-robot committed May 16, 2024
2 parents aa94d87 + 08bcc79 commit 672d952
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 22 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ jobs:
build-linux-amd64:
runs-on: ubuntu-20.04
steps:
- name: Set up go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
with:
go-version: '1.22.3'

- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
with:
path: ${{ env.GOPATH }}/src/k8s.io/kops

- name: Set up go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
with:
go-version-file: '${{ env.GOPATH }}/src/k8s.io/kops/go.mod'

- name: make all examples test
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
run: |
Expand All @@ -33,15 +33,15 @@ jobs:
build-macos-amd64:
runs-on: macos-latest
steps:
- name: Set up go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
with:
go-version: '1.22.3'

- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
with:
path: ${{ env.GOPATH }}/src/k8s.io/kops

- name: Set up go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
with:
go-version-file: '${{ env.GOPATH }}/src/k8s.io/kops/go.mod'

- name: make kops examples test
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
run: |
Expand All @@ -50,15 +50,15 @@ jobs:
build-windows-amd64:
runs-on: windows-2019
steps:
- name: Set up go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
with:
go-version: '1.22.3'

- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
with:
path: ${{ env.GOPATH }}/src/k8s.io/kops

- name: Set up go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
with:
go-version-file: '${{ env.GOPATH }}/src/k8s.io/kops/go.mod'

- name: make kops examples test
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
run: |
Expand All @@ -67,15 +67,15 @@ jobs:
verify:
runs-on: ubuntu-20.04
steps:
- name: Set up go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
with:
go-version: '1.22.3'

- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
with:
path: ${{ env.GOPATH }}/src/k8s.io/kops

- name: Set up go
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
with:
go-version-file: '${{ env.GOPATH }}/src/k8s.io/kops/go.mod'

- name: make quick-ci
working-directory: ${{ env.GOPATH }}/src/k8s.io/kops
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/update-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ jobs:
if: ${{ github.repository == 'kubernetes/kops' }}
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b

- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7
with:
go-version: '1.22.3'
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b
go-version-file: 'go.mod'

- name: Update Dependencies
id: update_deps
run: |
Expand Down

0 comments on commit 672d952

Please sign in to comment.