File tree Expand file tree Collapse file tree 2 files changed +43
-16
lines changed Expand file tree Collapse file tree 2 files changed +43
-16
lines changed Original file line number Diff line number Diff line change 1+ name : golangci-lint
2+ on :
3+ pull_request :
4+ branches : [ master ]
5+
6+ permissions :
7+ contents : read
8+
9+ jobs :
10+ golangci :
11+ name : lint
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/setup-go@v4
15+ with :
16+ go-version : ' 1.20'
17+ cache : false
18+ - uses : actions/checkout@v3
19+ - name : golangci-lint
20+ uses : golangci/golangci-lint-action@v3
21+ with :
22+ version : latest
23+ only-new-issues : true
Original file line number Diff line number Diff line change 55 branches : [ master ]
66
77jobs :
8- gomod :
8+ build :
99 runs-on : ubuntu-latest
1010 strategy :
1111 matrix :
1212 go : [
13+ ' 1.20' ,
1314 ' 1.19' ,
1415 ' 1.18' ,
1516 ' 1.17' ,
@@ -20,21 +21,24 @@ jobs:
2021 branch : [ '.', './v3' ]
2122 name : Go ${{ matrix.go }}.x PR Validate ${{ matrix.branch }} (Modules)
2223 steps :
23- - name : Checkout code
24- uses : actions/checkout@v3
25- - name : Setup Go
26- uses : actions/setup-go@v3
27- with :
28- go-version : ${{ matrix.go }}
29- - name : Version
30- run : go version
31- - name : Build and Validate
32- run : |
33- cd ${{ matrix.branch }}
34- go vet .
35- go test .
36- go test -cover -race -cpu 1,2,4 .
37- go build .
24+ - name : Checkout code
25+ uses : actions/checkout@v3
26+
27+ - name : Set up Go
28+ uses : actions/setup-go@v4
29+ with :
30+ go-version : ${{ matrix.go }}
31+
32+ - name : Version
33+ run : go version
34+
35+ - name : Build and Validate
36+ run : |
37+ cd ${{ matrix.branch }}
38+ go vet .
39+ go test .
40+ go test -cover -race -cpu 1,2,4 .
41+ go build .
3842
3943 lint :
4044 name : Lint
You can’t perform that action at this time.
0 commit comments