add code coverage via cargo tarpaulin and coveralls

This commit is contained in:
Harald Hoyer 2020-06-03 14:01:44 +02:00
parent 24900e47d9
commit 174d81c8d9
Signed by: harald
GPG key ID: 900F3C4971086004

22
.github/workflows/coverage.yml vendored Normal file
View file

@ -0,0 +1,22 @@
name: coverage
on: [ "push" , "pull_request" ]
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 tarpaulin --verbose --all-features --workspace --timeout 120 --out Lcov --output-dir coverage
- name: Upload to coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}