add coverage workflow
This commit is contained in:
parent
85acc0c4af
commit
b2653794a0
23
.github/workflows/coverage.yml
vendored
Normal file
23
.github/workflows/coverage.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
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 build && \
|
||||||
|
cargo tarpaulin --verbose --all-features --workspace --timeout 600 --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