Skip to content

Commit 5f45afc

Browse files
committed
chore: setup-go with go version file.
Signed-off-by: Lan Liang <[email protected]>
1 parent 499275d commit 5f45afc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/test.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- name: Set up Go 1.x
15-
uses: actions/setup-go@v4
16-
with:
17-
go-version: 1.21
18-
1914
- name: Check out code into the Go module directory
2015
uses: actions/checkout@v4
2116

17+
- name: Set up Go 1.x
18+
uses: actions/setup-go@v5
19+
with:
20+
go-version-file: go.mod
21+
2222
- name: Get dependencies
2323
run: go get -v -t -d ./...
2424

0 commit comments

Comments
 (0)