File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 1
1
name : Lint
2
2
3
3
on :
4
+ push :
5
+ branches :
6
+ - main
7
+ - master
4
8
pull_request :
5
9
6
10
jobs :
7
11
golangci :
8
12
name : golangci‑lint
9
13
runs-on : ubuntu-latest
10
14
steps :
15
+ - uses : actions/checkout@v4
11
16
- uses : actions/setup-go@v5
12
17
with :
13
- go-version : ' 1.24'
14
- - uses : actions/checkout@v4
18
+ go-version : stable
15
19
- name : golangci-lint
16
20
uses : golangci/golangci-lint-action@v8
17
21
with :
24
28
args : --enable bodyclose --timeout 10m
25
29
26
30
# Optional: show only new issues if it's a pull request. The default value is `false`.
27
- only-new-issues : true
28
-
29
- # Optional: if set to true then the action don't cache or restore ~/go/pkg.
30
- # skip-pkg-cache: true
31
-
32
- # Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
33
- # skip-build-cache: true
31
+ # only-new-issues: true
You can’t perform that action at this time.
0 commit comments