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 11linters-settings :
22 govet :
33 check-shadowing : true
4- golint :
5- min-confidence : 0
64 gocyclo :
75 min-complexity : 30
86 maligned :
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments