File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 go-version : ${{ matrix.go-version }}
1515 - name : Checkout code
1616 uses : actions/checkout@v2
17- - name : Test
18- run : go test -v -cover ./...
17+ - name : Run unit tests
18+ run : go test -v -race -cover
19+
20+ coverage :
21+ runs-on : ubuntu-latest
22+ steps :
23+ - name : Install Go
24+ uses : actions/setup-go@v2
25+ with :
26+ go-version : 1.14.x
27+ - name : Checkout code
28+ uses : actions/checkout@v2
29+ - name : Run unit tests with coverage
30+ run : go test -v -race -coverprofile=coverage.out
31+ - name : Convert coverage to lcov
32+ uses : jandelgado/gcov2lcov-action@v1.0.2
33+ with :
34+ infile : coverage.out
35+ outfile : coverage.lcov
36+ - name : Coveralls
37+ uses : coverallsapp/github-action@v1.1.1
38+ with :
39+ github-token : ${{ secrets.GITHUB_TOKEN }}
40+ path-to-lcov : coverage.lcov
You can’t perform that action at this time.
0 commit comments