forked from jshiffer/go-xmpp
Added coverage
Should detect race conditions, use the same covermove as the current mode in test.sh, and update code coverage on the repo. See : https://github.com/marketplace/actions/coveralls-github-action
This commit is contained in:
parent
c60edf4771
commit
80ba790555
13
.github/workflows/test.yaml
vendored
13
.github/workflows/test.yaml
vendored
@ -24,4 +24,15 @@ jobs:
|
|||||||
id: go
|
id: go
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: go test ./... -race
|
run: |
|
||||||
|
go test ./... -v -race -coverprofile cover.out -covermode=atomic
|
||||||
|
- name: Convert coverage to lcov
|
||||||
|
uses: jandelgado/gcov2lcov-action@v1.0.0
|
||||||
|
with:
|
||||||
|
infile: cover.out
|
||||||
|
outfile: coverage.lcov
|
||||||
|
- name: Coveralls
|
||||||
|
uses: coverallsapp/github-action@v1.0.1
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.github_token }}
|
||||||
|
path-to-lcov: coverage.lcov
|
||||||
|
Loading…
Reference in New Issue
Block a user