Skip to content

Commit 6f56b92

Browse files
committed
gha: update checkout v5.0.0, setup-go v5.5.0, golangci-lint v8.0.0
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 7e580b2 commit 6f56b92

File tree

2 files changed

+35
-7
lines changed

2 files changed

+35
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717

1818
steps:
1919
- name: Checkout repository
20-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
20+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2121

2222
- name: Set up Go
23-
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
23+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
2424
with:
2525
go-version: ${{ matrix.go }}
2626

@@ -35,14 +35,14 @@ jobs:
3535

3636
steps:
3737
- name: Checkout repository
38-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
38+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3939

4040
- name: Set up Go
41-
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
41+
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
4242
with:
4343
go-version: "1.23"
4444

4545
- name: Lint
46-
uses: golangci/golangci-lint-action@971e284b6050e8a5849b72094c50ab08da042db8 # v6.1.1
46+
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0
4747
with:
48-
version: v1.63.4
48+
version: v2.4

.golangci.yaml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,32 @@
1+
version: "2"
2+
3+
run:
4+
# assume oldest supported version as specified in go.mod
5+
go: "1.12.0"
6+
17
linters:
2-
disable-all: true
38
enable:
9+
- errorlint
410
- nolintlint
11+
- revive
12+
- unconvert
13+
- unparam
14+
exclusions:
15+
generated: disable
16+
presets:
17+
- comments
18+
- std-error-handling
19+
settings:
20+
staticcheck:
21+
# Enable all options, with some exceptions.
22+
# For defaults, see https://golangci-lint.run/usage/linters/#staticcheck
23+
checks:
24+
- all
25+
- -QF1008 # Omit embedded fields from selector expression; https://staticcheck.dev/docs/checks/#QF1008
26+
- -ST1003 # Poorly chosen identifier; https://staticcheck.dev/docs/checks/#ST1003
27+
28+
formatters:
29+
enable:
30+
- gofmt
31+
exclusions:
32+
generated: disable

0 commit comments

Comments
 (0)