Skip to content

Commit 522466a

Browse files
FedeDPpoiana
authored andcommitted
chore(ci): use go-version-file for setup-go action.
Moreover, switch to setup-go@v4 that supports caching by default. Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
1 parent e5cf52a commit 522466a

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

.github/workflows/ci.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ jobs:
3131
persist-credentials: false
3232

3333
- name: Setup Go
34-
uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.0
34+
uses: actions/setup-go@v4
3535
with:
36-
go-version: '1.21'
37-
check-latest: true
36+
go-version-file: 'go.mod'
3837

3938
- name: Execute go mod tidy and check the outcome
4039
working-directory: ./

.github/workflows/release.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ jobs:
5151
run: git fetch --prune --force --tags
5252

5353
- name: Setup Go
54-
uses: actions/setup-go@v3
54+
uses: actions/setup-go@v4
5555
with:
56-
go-version: '1.21'
56+
go-version-file: 'go.mod'
5757

5858
- name: Install GoReleaser
5959
uses: goreleaser/goreleaser-action@v5

.github/workflows/reusable_build_test_driverkit.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
fetch-depth: 0
1919

2020
- name: Setup Go
21-
uses: actions/setup-go@v3
21+
uses: actions/setup-go@v4
2222
with:
23-
go-version: '1.21'
23+
go-version-file: 'go.mod'
2424

2525
- name: Build
2626
run: make build

0 commit comments

Comments
 (0)