Skip to content

Commit 64cd01d

Browse files
authored
Merge pull request #1808 set fixed golang version for linter
2 parents eaf6f01 + 9de5a18 commit 64cd01d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/lint.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
workflow_dispatch:
99
env:
1010
GOLANGCI_LINT_VERSION: v1.60.3
11+
GO_VERSION: '1.23'
1112
jobs:
1213
golangci:
1314
if: (!contains(github.event.pull_request.labels.*.name, 'no lint'))
@@ -17,6 +18,9 @@ jobs:
1718
cancel-in-progress: true
1819
runs-on: ubuntu-latest
1920
steps:
21+
- uses: actions/setup-go@v5
22+
with:
23+
go-version: ${{ env.GO_VERSION }}
2024
- uses: actions/checkout@v4
2125
- name: golangci-lint
2226
uses: golangci/golangci-lint-action@v4
@@ -30,6 +34,9 @@ jobs:
3034
cancel-in-progress: true
3135
runs-on: ubuntu-latest
3236
steps:
37+
- uses: actions/setup-go@v5
38+
with:
39+
go-version: ${{ env.GO_VERSION }}
3340
- uses: actions/checkout@v4
3441
- name: generate examples golangci-lint config
3542
run: ./.github/scripts/golangci-lint-gen-configs.sh
@@ -47,6 +54,9 @@ jobs:
4754
cancel-in-progress: true
4855
runs-on: ubuntu-latest
4956
steps:
57+
- uses: actions/setup-go@v5
58+
with:
59+
go-version: ${{ env.GO_VERSION }}
5060
- uses: actions/checkout@v4
5161
- name: generate slo golangci-lint config
5262
run: ./.github/scripts/golangci-lint-gen-configs.sh

0 commit comments

Comments
 (0)