We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3999a6 commit 249d0d4Copy full SHA for 249d0d4
.github/workflows/check-golangci-lint-config.yml
@@ -0,0 +1,22 @@
1
+name: check golangci-lint config
2
+on:
3
+ pull_request:
4
+ push:
5
+ branches:
6
+ - master
7
+
8
+jobs:
9
+ check:
10
+ runs-on: ubuntu-latest
11
+ strategy:
12
+ matrix:
13
+ golangci-lint-version: ["v1", "v2"]
14
+ steps:
15
+ - name: Check out code into the Go module directory
16
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
17
+ - name: golangci-lint
18
+ uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 #v6.5.2
19
+ with:
20
+ version: ${{ matrix.golangci-lint-version == 'v1' && 'v1.64.8' || 'latest' }}
21
+ - name: Validate golangci-lint config
22
+ run: golangci-lint config verify --config=.github/.golangci.${{ matrix.golangci-lint-version }}.yml
0 commit comments