Create coverage.yml

This commit is contained in:
PSeitz
2021-07-03 09:35:07 +02:00
committed by GitHub
parent 18377d949c
commit 57f931da3c

27
.github/workflows/coverage.yml vendored Normal file
View File

@@ -0,0 +1,27 @@
name: coverage
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: coverage
runs-on: ubuntu-latest
container:
image: xd009642/tarpaulin
options: --security-opt seccomp=unconfined
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Generate code coverage
run: |
cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out Xml
- name: Upload to codecov.io
uses: codecov/codecov-action@v1
with:
# token: ${{secrets.CODECOV_TOKEN}} # not required for public repos
fail_ci_if_error: true