Skip to content

Commit 8c1fa87

Browse files
authored
ci: added coverage yml (#119)
1 parent 23e1a7b commit 8c1fa87

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/coverage.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: coverage
2+
3+
on: [push]
4+
jobs:
5+
test:
6+
name: coverage
7+
runs-on: ubuntu-latest
8+
container:
9+
image: xd009642/tarpaulin:develop-nightly
10+
options: --security-opt seccomp=unconfined
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v2
14+
15+
- name: Generate code coverage
16+
run: |
17+
cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out xml
18+
19+
- name: Upload to codecov.io
20+
uses: codecov/codecov-action@v2
21+
with:
22+
token: ${{secrets.CODECOV_TOKEN}}
23+
fail_ci_if_error: true

0 commit comments

Comments
 (0)