Skip to content

Commit 2d14952

Browse files
authored
Use go-version-file instead of go-version (#179)
1 parent e52a563 commit 2d14952

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ jobs:
2323
- name: Set up Go
2424
uses: actions/setup-go@v3
2525
with:
26-
go-version: 1.19
26+
go-version-file: 'go.mod'
2727
- name: Run test
2828
run: go test ./...

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up Go
1818
uses: actions/setup-go@v3
1919
with:
20-
go-version: 1.19
20+
go-version-file: 'go.mod'
2121
- name: Run linters
2222
run: |
2323
export PATH=$PATH:$(go env GOPATH)/bin

0 commit comments

Comments
 (0)