File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed
Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Go
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ jobs :
10+
11+ build :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v2
15+
16+ - name : Set up Go
17+ uses : actions/setup-go@v2
18+ with :
19+ go-version : 1.16
20+
21+ - name : Build
22+ run : go build -v ./...
23+
24+ - name : Test
25+ run : go test -v -race $(go list ./... | grep -v /examples/) -coverprofile=coverage.txt -covermode=atomic
26+
27+ - name : CodeCov
28+ uses : codecov/codecov-action@v1
29+ with :
30+ files : ./coverage.txt
31+ flags : unittests
32+ name : codecov-umbrella
33+ fail_ci_if_error : false
34+ verbose : true
Original file line number Diff line number Diff line change 1+ name : golangci-lint
2+ on : [push, pull_request]
3+ jobs :
4+ golangci :
5+ name : lint
6+ runs-on : ubuntu-latest
7+ steps :
8+ - uses : actions/checkout@v2
9+ - name : golangci-lint
10+ uses : golangci/golangci-lint-action@v2
11+ with :
12+ version : v1.29
You can’t perform that action at this time.
0 commit comments