Skip to content

Commit 4c708d2

Browse files
chore(deps): update actions/setup-go action to v6 (#694)
* chore(deps): update actions/setup-go action to v6 * fix: remove GO_VERSION environment variable and use go.mod for Go version in CI workflows --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Luca Corrieri <[email protected]>
1 parent e392d4e commit 4c708d2

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ permissions:
1919
packages: write
2020
id-token: write # Required for Codecov
2121

22-
env:
23-
GO_VERSION: 1.23
24-
2522
jobs:
2623
unit-tests:
2724
name: Unit Tests
@@ -35,9 +32,9 @@ jobs:
3532
path: ./bin/
3633
key: binaries
3734
- name: Setup Golang
38-
uses: actions/setup-go@v5
35+
uses: actions/setup-go@v6
3936
with:
40-
go-version: "${{ env.GO_VERSION }}"
37+
go-version-file: "go.mod"
4138
- name: Install envtest
4239
run: make envtest
4340
- name: Setup envtest
@@ -58,9 +55,9 @@ jobs:
5855
- name: Checkout
5956
uses: actions/checkout@v5
6057
- name: Setup Golang
61-
uses: actions/setup-go@v5
58+
uses: actions/setup-go@v6
6259
with:
63-
go-version: "${{ env.GO_VERSION }}"
60+
go-version-file: "go.mod"
6461
- name: Generate manifests
6562
run: make manifests
6663
- name: Check nothing has changed
@@ -72,9 +69,9 @@ jobs:
7269
runs-on: ubuntu-latest
7370
steps:
7471
- uses: actions/checkout@v5
75-
- uses: actions/setup-go@v5
72+
- uses: actions/setup-go@v6
7673
with:
77-
go-version: "${{ env.GO_VERSION }}"
74+
go-version-file: "go.mod"
7875
cache: false
7976
- name: golangci-lint
8077
uses: golangci/golangci-lint-action@v6

.github/workflows/release.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on:
55
tags:
66
- "v*"
77

8-
env:
9-
GO_VERSION: 1.23
10-
118
permissions:
129
contents: write
1310
packages: write
@@ -27,9 +24,9 @@ jobs:
2724
run: git fetch --force --tags
2825

2926
- name: Set up Go
30-
uses: actions/setup-go@v5
27+
uses: actions/setup-go@v6
3128
with:
32-
go-version: "${{ env.GO_VERSION }}"
29+
go-version-file: "go.mod"
3330

3431
- name: Get ldflags env values
3532
run: |

0 commit comments

Comments
 (0)