Skip to content

Commit 36245f4

Browse files
committed
chore: update go version to use go.mod as go-version-file.
Signed-off-by: Lan Liang <[email protected]>
1 parent 63c74ce commit 36245f4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/static-analysis.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
- uses: actions/checkout@v4
1010
- uses: actions/setup-go@v5
1111
with:
12-
go-version: 1.21
12+
go-version-file: go.mod
1313
- name: golangci-lint
1414
uses: golangci/golangci-lint-action@v4
1515
with:

.github/workflows/tests.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ jobs:
77
test:
88
runs-on: ubuntu-latest
99
steps:
10+
- uses: actions/checkout@v4
1011
- uses: actions/setup-go@v5
1112
with:
12-
go-version: 1.21
13-
- uses: actions/checkout@v4
13+
go-version-file: go.mod
1414
- name: tests
1515
run: |
1616
make test

0 commit comments

Comments
 (0)