File tree Expand file tree Collapse file tree 3 files changed +39
-26
lines changed Expand file tree Collapse file tree 3 files changed +39
-26
lines changed Original file line number Diff line number Diff line change
1
+ name : Go Test
2
+
3
+ on : [push]
4
+
5
+ jobs :
6
+
7
+ lint :
8
+ name : lint
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v3
12
+ - uses : actions/setup-go@v3
13
+ with :
14
+ go-version : " ^1"
15
+ check-latest : true
16
+ cache : true
17
+ - name : golangci-lint
18
+ uses : golangci/golangci-lint-action@v3
19
+ with :
20
+ version : v1.50
21
+ only-new-issues : true
22
+
23
+ test :
24
+ needs : [lint]
25
+ name : Test
26
+ runs-on : ${{ matrix.os }}
27
+
28
+ strategy :
29
+ matrix :
30
+ os : [ ubuntu-latest, macos-latest, windows-latest ]
31
+ steps :
32
+
33
+ - uses : actions/setup-go@v2
34
+ with :
35
+ go-version : 1.x
36
+
37
+ - uses : actions/checkout@v2
38
+
39
+ - run : go test
Original file line number Diff line number Diff line change 1
1
linters-settings :
2
2
govet :
3
3
check-shadowing : true
4
- golint :
5
- min-confidence : 0
6
4
gocyclo :
7
5
min-complexity : 30
8
6
maligned :
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments