Skip to content

Commit

Permalink
Use actions/setup-go@v5
Browse files Browse the repository at this point in the history
Signed-off-by: Kimmo Lehto <[email protected]>
  • Loading branch information
kke committed Jan 10, 2024
1 parent 7fa70d3 commit a331b43
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 23 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/autopilot-branch-to-latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,12 @@ jobs:
run: .github/workflows/prepare-build-env.sh

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
cache-dependency-path: |
go.sum
hack/tool/go.sum
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/check-network.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,12 @@ jobs:
run: .github/workflows/prepare-build-env.sh

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
cache-dependency-path: |
go.sum
hack/tool/go.sum
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
Expand Down
28 changes: 20 additions & 8 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,12 @@ jobs:
run: .github/workflows/prepare-build-env.sh

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
cache-dependency-path: |
go.sum
hack/tool/go.sum
- name: Cache GOCACHE
uses: actions/cache@v3
Expand Down Expand Up @@ -224,9 +227,12 @@ jobs:
run: .github/workflows/prepare-docker-ipv6.sh

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
cache-dependency-path: |
go.sum
hack/tool/go.sum
- name: Download compiled executable
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -296,9 +302,12 @@ jobs:
run: .github/workflows/prepare-build-env.sh

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
cache-dependency-path: |
go.sum
hack/tool/go.sum
- name: Download compiled executable
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -357,9 +366,12 @@ jobs:
run: .github/workflows/prepare-build-env.sh

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
cache-dependency-path: |
go.sum
hack/tool/go.sum
- name: Cache embedded binaries
uses: actions/cache@v3
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,13 @@ jobs:
cache: pip
cache-dependency-path: docs/requirements.txt

- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v3
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
cache-dependency-path: |
go.sum
hack/tool/go.sum
- name: Install dependencies
run: |
Expand Down
28 changes: 20 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,12 @@ jobs:
VERSION: ${{ needs.release.outputs.tag_name }}

- name: Set up Go for smoke tests
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
cache-dependency-path: |
go.sum
hack/tool/go.sum
- name: Run basic smoke test
run: make check-basic
Expand Down Expand Up @@ -257,9 +260,12 @@ jobs:
/k0s/k0s --output-file /k0s/k0s.sig
- name: Set up Go for smoke tests
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
cache-dependency-path: |
go.sum
hack/tool/go.sum
- name: Run basic smoke test
run: make check-basic
Expand Down Expand Up @@ -365,9 +371,12 @@ jobs:
/k0s/k0s --output-file /k0s/k0s.sig
- name: Set up Go for smoke tests
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
cache-dependency-path: |
go.sum
hack/tool/go.sum
- name: Run basic smoke test
run: make check-basic
Expand Down Expand Up @@ -584,9 +593,12 @@ jobs:
run: .github/workflows/prepare-build-env.sh

- name: Set up Go
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
cache-dependency-path: |
go.sum
hack/tool/go.sum
- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
Expand Down

0 comments on commit a331b43

Please sign in to comment.