Skip to content

Commit 9c38021

Browse files
committed
Use Go version from go.mod file
1 parent 2871b8d commit 9c38021

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ jobs:
3131
- name: Setup Golang Environment
3232
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
3333
with:
34-
go-version: stable
34+
go-version-file: go.mod
35+
36+
- name: Check if go.mod and go.sum are up to date
37+
run: go mod tidy && git diff --exit-code -- go.mod go.sum
3538

3639
- name: Run Tests
3740
run: make test

0 commit comments

Comments
 (0)