Skip to content

Commit 6aae72c

Browse files
committed
fix: update golangci-lint to v2 in CI and config
Upgrade from golangci-lint v1.53 to v2.1 in CI workflow and use v2 config format. Also update checkout and setup-go actions to latest.
1 parent 83c6dc6 commit 6aae72c

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ jobs:
66
golangci:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v3
9+
- uses: actions/checkout@v4
1010
with:
1111
fetch-depth: 0
12-
- uses: actions/setup-go@v4
12+
- uses: actions/setup-go@v5
1313
with:
1414
go-version: "1.20"
1515
- name: golangci-lint
16-
uses: golangci/golangci-lint-action@v3
16+
uses: golangci/golangci-lint-action@v6
1717
with:
18-
version: v1.53
18+
version: v2.1
1919
args: --timeout=5m

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
version: "2"
2+
23
linters:
34
enable:
45
- errcheck

0 commit comments

Comments
 (0)