Skip to content

Commit

Permalink
github: Read Go version from go.mod
Browse files Browse the repository at this point in the history
This reduces the number of places to update whenever we upgrade Go version.
  • Loading branch information
radeksimko committed Feb 16, 2024
1 parent 82351cc commit 97cf603
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 ./...
Expand Down

0 comments on commit 97cf603

Please sign in to comment.