Commit 6a543b2 1 parent 32d292e commit 6a543b2 Copy full SHA for 6a543b2
File tree 2 files changed +43
-16
lines changed
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 5
5
branches : [ master ]
6
6
7
7
jobs :
8
- gomod :
8
+ build :
9
9
runs-on : ubuntu-latest
10
10
strategy :
11
11
matrix :
12
12
go : [
13
+ ' 1.20' ,
13
14
' 1.19' ,
14
15
' 1.18' ,
15
16
' 1.17' ,
@@ -20,21 +21,24 @@ jobs:
20
21
branch : [ '.', './v3' ]
21
22
name : Go ${{ matrix.go }}.x PR Validate ${{ matrix.branch }} (Modules)
22
23
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 .
38
42
39
43
lint :
40
44
name : Lint
You can’t perform that action at this time.
0 commit comments