File tree 3 files changed +6
-12
lines changed
3 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 20
20
cover :
21
21
name : Coverage
22
22
runs-on : ubuntu-latest
23
- env :
24
- GO111MODULE : on
25
23
steps :
26
24
- uses : actions/setup-go@v3
27
25
with :
32
30
run : |
33
31
go version
34
32
make test-cover | grep -o "coverage:.*of statements$" | python scripts/cov.py
35
-
36
33
shell : bash
Original file line number Diff line number Diff line change @@ -12,15 +12,14 @@ jobs:
12
12
matrix :
13
13
os : [macos-latest, ubuntu-latest]
14
14
steps :
15
+ - uses : actions/setup-go@v3
16
+ with :
17
+ go-version : " 1.18"
15
18
- name : Checkout code
16
- uses : actions/checkout@v1
19
+ uses : actions/checkout@v2
17
20
with :
18
21
fetch-depth : 1
19
- - name : Get dependencies
20
- run : go get -v -t -d ./...
21
- - name : Build project
22
- run : go build ./...
23
22
- name : Run tests
24
23
run : |
25
24
go version
26
- go test -short -race -v ./...
25
+ make test
Original file line number Diff line number Diff line change 5
5
lint :
6
6
name : Lint
7
7
runs-on : ubuntu-latest
8
- env :
9
- GO111MODULE : on
10
8
steps :
11
9
- uses : actions/setup-go@v3
12
10
with :
18
16
go version
19
17
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.53.2
20
18
- name : Run required linters in .golangci.yml plus hard-coded ones here
21
- run : make -w GOLINT=$(go env GOPATH)/bin/golangci-lint lint
19
+ run : make lint
You can’t perform that action at this time.
0 commit comments