Skip to content

Commit 9f8b427

Browse files
authored
Update setup-go actions to use Go version from go.mod file (#49)
1 parent 8146cca commit 9f8b427

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/linting.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v3
1313
- uses: actions/setup-go@v4
1414
with:
15-
go-version: '1.17'
15+
go-version-file: go.mod
1616

1717
- name: golangci-lint
1818
uses: golangci/golangci-lint-action@v3.6.0

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
- uses: actions/setup-go@v4
1919
with:
20-
go-version: '1.17'
20+
go-version-file: go.mod
2121

2222
- uses: crazy-max/ghaction-import-gpg@v5.3.0
2323
id: import_gpg

.github/workflows/testing.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v3
1313
- uses: actions/setup-go@v4
1414
with:
15-
go-version: '1.17'
15+
go-version-file: go.mod
1616

1717
- name: Run unit tests
1818
run: make test
@@ -24,7 +24,7 @@ jobs:
2424
- uses: actions/checkout@v3
2525
- uses: actions/setup-go@v4
2626
with:
27-
go-version: '1.17'
27+
go-version-file: go.mod
2828

2929
- name: Run acceptance tests
3030
run: make testacc

0 commit comments

Comments
 (0)