Skip to content

Commit d6573cc

Browse files
committed
fix: cleanup golangcl lint
1 parent b99181b commit d6573cc

File tree

1 file changed

+6
-25
lines changed

1 file changed

+6
-25
lines changed
Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
name: golangci-lint
22
on:
33
push:
4-
tags:
5-
- v*
64
branches:
75
- master
86
pull_request:
7+
98
permissions:
109
contents: read
1110
pull-requests: read
@@ -15,30 +14,12 @@ jobs:
1514
name: lint
1615
runs-on: ubuntu-latest
1716
steps:
18-
- uses: actions/setup-go@v4
19-
with:
20-
go-version: 1.17
2117
- uses: actions/checkout@v4
18+
- uses: actions/setup-go@v5
19+
with:
20+
go-version: stable
2221
- name: golangci-lint
23-
uses: golangci/golangci-lint-action@v3
22+
uses: golangci/golangci-lint-action@v6
2423
with:
25-
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
26-
version: v1.29
27-
28-
# Optional: working directory, useful for monorepos
29-
# working-directory: somedir
30-
31-
# Optional: golangci-lint command line arguments.
32-
# args: --issues-exit-code=0
33-
24+
version: v1.61
3425
only-new-issues: true
35-
36-
# Optional: if set to true then the all caching functionality will be complete disabled,
37-
# takes precedence over all other caching options.
38-
# skip-cache: true
39-
40-
# Optional: if set to true then the action don't cache or restore ~/go/pkg.
41-
# skip-pkg-cache: true
42-
43-
# Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
44-
# skip-build-cache: true

0 commit comments

Comments
 (0)