mirror of
https://github.com/haraldh/chainerror.git
synced 2025-01-31 00:56:41 +01:00
add code coverage via cargo tarpaulin and coveralls
This commit is contained in:
parent
24900e47d9
commit
174d81c8d9
22
.github/workflows/coverage.yml
vendored
Normal file
22
.github/workflows/coverage.yml
vendored
Normal 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 }}
|
Loading…
Reference in a new issue