Skip to content

Commit 249d0d4

Browse files
committed
test
1 parent d3999a6 commit 249d0d4

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)