File tree 1 file changed +13
-9
lines changed
1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,17 @@ jobs:
28
28
go-version : ' 1.16'
29
29
- name : Checkout code
30
30
uses : actions/checkout@v2
31
- - name : Calc coverage
31
+ - name : Install dependencies
32
32
run : |
33
- go test -v -covermode=count -coverprofile=coverage.out ./...
34
- - name : Convert coverage.out to coverage.lcov
35
- uses :
jandelgado/[email protected]
36
- - name : Coveralls
37
- uses :
coverallsapp/[email protected]
38
- with :
39
- github-token : ${{ secrets.GITHUB_TOKEN }}
40
- path-to-lcov : coverage.lcov
33
+ go mod download
34
+ - name : Run Unit tests
35
+ run : |
36
+ go test -race -covermode atomic -coverprofile=covprofile ./...
37
+ - name : Install goveralls
38
+ env :
39
+ GO111MODULE : off
40
+ run : go get github.com/mattn/goveralls
41
+ - name : Send coverage
42
+ env :
43
+ COVERALLS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44
+ run : goveralls -coverprofile=covprofile -service=github
You can’t perform that action at this time.
0 commit comments