Skip to content

Commit ab5e064

Browse files
committed
Improve lint workflow to work with newer Go
1 parent 98f76c5 commit ab5e064

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/checks.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ permissions:
1111
pull-requests: read
1212
env:
1313
CGO_ENABLED: 0
14-
GO_VERSION: stable
1514
GOLANGCI_LINT_VERSION: v1.64.5
1615
SHELLCHECK_SCRIPTS: ./*.sh
1716
jobs:
@@ -21,7 +20,7 @@ jobs:
2120
- uses: actions/checkout@v4
2221
- uses: actions/setup-go@v5
2322
with:
24-
go-version: ${{ env.GO_VERSION }}
23+
go-version-file: go.mod
2524
- name: Run GolangCI-Lint
2625
uses: golangci/golangci-lint-action@v6
2726
with:
@@ -32,7 +31,7 @@ jobs:
3231
- uses: actions/checkout@v4
3332
- uses: actions/setup-go@v5
3433
with:
35-
go-version: ${{ env.GO_VERSION }}
34+
go-version-file: go.mod
3635
- name: Check if go.mod is tidy
3736
run: |
3837
go mod tidy

0 commit comments

Comments
 (0)