File tree Expand file tree Collapse file tree 2 files changed +14
-3
lines changed
Expand file tree Collapse file tree 2 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 88
99jobs :
1010
11- build :
11+ test :
1212 runs-on : ubuntu-latest
1313 steps :
1414 - uses : actions/checkout@v2
2222 run : go build -v ./...
2323
2424 - name : Test
25- run : go test -v ./...
25+ run : go test -v -covermode=count -coverprofile=coverage.out ./...
26+
27+ - name : Coveralls install goveralls
28+ run : go get github.com/mattn/goveralls
29+
30+ - name : Coveralls push
31+ run : goveralls -coverprofile=coverage.out -service=github
32+ env :
33+ COVERALLS_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34+
Original file line number Diff line number Diff line change 1+ [ ![ Coverage Status] ( https://coveralls.io/repos/github/rekby/fixenv/badge.svg?branch=master )] ( https://coveralls.io/github/rekby/fixenv?branch=master )
2+
13Go Fixtures
24===========
35
@@ -134,4 +136,4 @@ func TestSecondTransferBetweenCustomers(t *testing.T){
134136
135137// background:
136138// after all test finished drop database
137- ```
139+ ```
You can’t perform that action at this time.
0 commit comments