File tree Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -2,20 +2,26 @@ name: golangci-lint
2
2
on :
3
3
push :
4
4
branches :
5
- - master
5
+ - master
6
6
pull_request :
7
+
7
8
permissions :
8
9
contents : read
10
+ pull-requests : read
11
+
9
12
jobs :
10
13
golangci :
11
14
name : lint
12
15
runs-on : ubuntu-latest
13
16
steps :
14
- - uses : actions/setup-go@v3
17
+ - uses : actions/setup-go@v5
15
18
with :
19
+ cache : false
16
20
go-version : ' 1.20'
17
- - uses : actions/checkout@v3
21
+ - uses : actions/checkout@v4
18
22
- name : golangci-lint
19
- uses : golangci/golangci-lint-action@v3
23
+ uses : golangci/golangci-lint-action@v6
20
24
with :
21
- version : latest
25
+ version : ' latest'
26
+ args : ' --timeout=60m'
27
+ only-new-issues : true
Original file line number Diff line number Diff line change @@ -2,14 +2,17 @@ name: test
2
2
on :
3
3
push :
4
4
branches :
5
- - master
5
+ - master
6
6
pull_request :
7
7
jobs :
8
8
test :
9
9
runs-on : ubuntu-latest
10
10
steps :
11
- - uses : actions/setup-go@v3
11
+ - uses : actions/setup-go@v5
12
12
with :
13
+ cache : false
13
14
go-version : ' 1.20'
14
- - uses : actions/checkout@v3
15
- - uses : n8maninger/action-golang-test@v1
15
+ - uses : actions/checkout@v4
16
+ - uses : n8maninger/action-golang-test@v2
17
+ with :
18
+ args : " -race;-timeout=30m"
You can’t perform that action at this time.
0 commit comments