File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : ci
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+ tags : [ v* ]
7+ pull_request :
8+ branches : [ master ]
9+
10+ jobs :
11+ matrix :
12+ strategy :
13+ matrix :
14+ go-version : [1.15.x, 1.14.x, 1.13.x]
15+ runs-on : ubuntu-latest
16+ steps :
17+ - uses : actions/setup-go@v2
18+ with :
19+ go-version : ${{ matrix.go-version }}
20+ - uses : actions/checkout@v2
21+ - run : go get -v -t -d ./...
22+ - run : go test -v ./...
23+ coverage :
24+ runs-on : ubuntu-latest
25+ steps :
26+ - name : Coverage on latest 1.x Go
27+ uses : actions/setup-go@v2
28+ with :
29+ go-version : ^1.*
30+ - uses : actions/checkout@v2
31+ - run : go get -v -t -d ./...
32+ - run : go test -v -coverprofile=coverage.out -covermode=count ./...
33+ - uses : codecov/codecov-action@v1
34+ with :
35+ file : ./coverage.out
36+ fail_ci_if_error : true
37+ golangci :
38+ name : lint
39+ runs-on : ubuntu-latest
40+ steps :
41+ - uses : actions/checkout@v2
42+ - name : golangci-lint
43+ uses : golangci/golangci-lint-action@v2
44+ with :
45+ version : v1.34
46+ only-new-issues : true
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments