Skip to content

Commit b4b6d7c

Browse files
get go version for setup-go from go.mod
1 parent d49b1a7 commit b4b6d7c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Diff for: .github/workflows/verify_generated_files.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ jobs:
2222
- name: Set Go
2323
uses: actions/setup-go@v5
2424
with:
25-
go-version: v1.21
25+
go-version-file: './go.mod'
2626
- name: Verify that imports are organized
2727
run: make verify-imports

Diff for: .github/workflows/verify_unit_test.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ jobs:
1616
- name: Set up Go
1717
uses: actions/setup-go@v5
1818
with:
19-
go-version: v1.21
20-
21-
19+
go-version-file: './go.mod'
2220

2321
- name: Run unit tests
2422
run: go test ./support/. -v

0 commit comments

Comments
 (0)