Skip to content

Commit 09b9940

Browse files
committed
gha: update checkout v6.0.1, setup-go v6.1.0, golangci-lint v9.2.0
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 1cdeda5 commit 09b9940

File tree

2 files changed

+24
-7
lines changed

2 files changed

+24
-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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2121

2222
- name: Set up Go
23-
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
23+
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
3939

4040
- name: Set up Go
41-
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0
41+
uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.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@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
4747
with:
48-
version: v1.63.4
48+
version: v2.7

.golangci.yaml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
1+
version: "2"
2+
13
linters:
2-
disable-all: true
34
enable:
5+
- errorlint
46
- nolintlint
7+
- revive
8+
- unconvert
9+
- unparam
10+
settings:
11+
staticcheck:
12+
# Enable all options, with some exceptions.
13+
# For defaults, see https://golangci-lint.run/usage/linters/#staticcheck
14+
checks:
15+
- all
16+
- -QF1008 # Omit embedded fields from selector expression; https://staticcheck.dev/docs/checks/#QF1008
17+
- -ST1003 # Poorly chosen identifier; https://staticcheck.dev/docs/checks/#ST1003
18+
19+
formatters:
20+
enable:
21+
- gofmt

0 commit comments

Comments
 (0)