summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRadek Simko <radek.simko@gmail.com>2024-02-16 13:04:28 +0000
committerRadek Simko <radek.simko@gmail.com>2024-02-16 13:10:54 +0000
commit97cf603f3cadfdcd5b472e55e2576ad22e971b17 (patch)
tree735e9353734d2520ede2b0e4f90e8a79b1472238
parent82351cc777eb4118a8ad348b9a7da831a4a2fa1d (diff)
github: Read Go version from go.mod
This reduces the number of places to update whenever we upgrade Go version.
-rw-r--r--.github/workflows/checks.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml
index 4842b6e..6aaa038 100644
--- a/.github/workflows/checks.yml
+++ b/.github/workflows/checks.yml
@@ -34,7 +34,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
- go-version: 1.18
+ go-version-file: go.mod
- name: Go test
run: |
go test ./... -race
@@ -49,7 +49,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
- go-version: 1.18
+ go-version-file: go.mod
- name: "Check vet"
run: |
go vet ./...