Files
noq/.github/workflows/codecov.yml
T
Demi M. Obenour 6018f20055 Don’t try to run code coverage on PRs
It won’t work, as those builds don’t have access to the CodeCov API
token.
2020-07-06 09:46:18 +02:00

25 lines
549 B
YAML

name: Coverage
on:
push:
branches: ['master', '0.5.x']
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/tarpaulin@v0.1
- uses: codecov/codecov-action@v1.0.2
with:
token: ${{secrets.CODECOV_TOKEN}}
- uses: actions/upload-artifact@v1
with:
name: code-coverage-report
path: cobertura.xml