Skip to content

Commit 9de5a18

Browse files
committed
install same go version for all linters
1 parent d936a60 commit 9de5a18

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/lint.yml

Lines changed: 8 additions & 1 deletion
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'))
@@ -19,7 +20,7 @@ jobs:
1920
steps:
2021
- uses: actions/setup-go@v5
2122
with:
22-
go-version: '1.23'
23+
go-version: ${{ env.GO_VERSION }}
2324
- uses: actions/checkout@v4
2425
- name: golangci-lint
2526
uses: golangci/golangci-lint-action@v4
@@ -33,6 +34,9 @@ jobs:
3334
cancel-in-progress: true
3435
runs-on: ubuntu-latest
3536
steps:
37+
- uses: actions/setup-go@v5
38+
with:
39+
go-version: ${{ env.GO_VERSION }}
3640
- uses: actions/checkout@v4
3741
- name: generate examples golangci-lint config
3842
run: ./.github/scripts/golangci-lint-gen-configs.sh
@@ -50,6 +54,9 @@ jobs:
5054
cancel-in-progress: true
5155
runs-on: ubuntu-latest
5256
steps:
57+
- uses: actions/setup-go@v5
58+
with:
59+
go-version: ${{ env.GO_VERSION }}
5360
- uses: actions/checkout@v4
5461
- name: generate slo golangci-lint config
5562
run: ./.github/scripts/golangci-lint-gen-configs.sh

0 commit comments

Comments
 (0)