Merge pull request #114 from alexflint/migrate-to-codecov
Upload coverage to codecov
This commit is contained in:
commit
912ef0c3e4
|
@ -24,7 +24,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go }}
|
go-version: ${{ matrix.go }}
|
||||||
|
|
||||||
- name: Check out code into the Go module directory
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
@ -34,17 +34,4 @@ jobs:
|
||||||
run: go test -v -coverprofile=profile.cov .
|
run: go test -v -coverprofile=profile.cov .
|
||||||
|
|
||||||
- name: Send coverage
|
- name: Send coverage
|
||||||
uses: shogo82148/actions-goveralls@v1
|
run: bash <(curl -s https://codecov.io/bash) -f profile.cov
|
||||||
with:
|
|
||||||
path-to-profile: profile.cov
|
|
||||||
parallel: true
|
|
||||||
|
|
||||||
# notifies coveralls that all test jobs are finished
|
|
||||||
finish:
|
|
||||||
name: Finish
|
|
||||||
needs: build_and_test
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: shogo82148/actions-goveralls@v1
|
|
||||||
with:
|
|
||||||
parallel-finished: true
|
|
||||||
|
|
|
@ -9,8 +9,7 @@
|
||||||
<a href="https://sourcegraph.com/github.com/alexflint/go-arg?badge"><img src="https://sourcegraph.com/github.com/alexflint/go-arg/-/badge.svg" alt="Sourcegraph"></a>
|
<a href="https://sourcegraph.com/github.com/alexflint/go-arg?badge"><img src="https://sourcegraph.com/github.com/alexflint/go-arg/-/badge.svg" alt="Sourcegraph"></a>
|
||||||
<a href="https://pkg.go.dev/github.com/alexflint/go-arg"><img src="https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square" alt="Documentation"></a>
|
<a href="https://pkg.go.dev/github.com/alexflint/go-arg"><img src="https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square" alt="Documentation"></a>
|
||||||
<a href="https://github.com/alexflint/go-arg/actions"><img src="https://github.com/alexflint/go-arg/workflows/Go/badge.svg" alt="Build Status"></a>
|
<a href="https://github.com/alexflint/go-arg/actions"><img src="https://github.com/alexflint/go-arg/workflows/Go/badge.svg" alt="Build Status"></a>
|
||||||
<a href="https://coveralls.io/github/alexflint/go-arg?branch=master"><img src="https://coveralls.io/repos/alexflint/go-arg/badge.svg?branch=master&service=github" alt="Test Coverage"></a>
|
<a href="https://codecov.io/gh/alexflint/go-arg"><img src="https://codecov.io/gh/alexflint/go-arg/branch/master/graph/badge.svg" alt="Coverage Status"></a>
|
||||||
<!--<a href="https://codecov.io/gh/alexflint/go-arg"><img src="https://codecov.io/gh/alexflint/go-arg/branch/master/graph/badge.svg" alt="Coverage Status"></a>-->
|
|
||||||
<a href="https://goreportcard.com/report/github.com/alexflint/go-arg"><img src="https://goreportcard.com/badge/github.com/alexflint/go-arg" alt="Go Report Card"></a>
|
<a href="https://goreportcard.com/report/github.com/alexflint/go-arg"><img src="https://goreportcard.com/badge/github.com/alexflint/go-arg" alt="Go Report Card"></a>
|
||||||
</p>
|
</p>
|
||||||
<br>
|
<br>
|
||||||
|
|
Loading…
Reference in New Issue