Skip to content

Commit 27bb31d

Browse files
committed
ci: fix tarpaulin code coverage
1 parent b26488e commit 27bb31d

1 file changed

Lines changed: 20 additions & 2 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,25 @@ jobs:
8080
with:
8181
args: '--timeout=360 -v --out Lcov'
8282
- name: Push code coverage results to coveralls.io
83-
if: matrix.os == 'ubuntu-latest'
83+
if: matrix.os == 'ubuntu-latest'
84+
uses: coverallsapp/github-action@master
85+
with:
86+
github-token: ${{ secrets.GITHUB_TOKEN }}
87+
path-to-lcov: ./lcov.info
88+
89+
test_coverage:
90+
name: Code coverage in tests
91+
runs-on: ubuntu-latest
92+
container:
93+
image: xd009642/tarpaulin:latest
94+
options: --security-opt seccomp=unconfined
95+
steps:
96+
- name: Checkout repository
97+
uses: actions/checkout@v2
98+
- name: Generate code coverage
99+
run: |
100+
cargo tarpaulin --avoid-cfg-tarpaulin --timeout=360 --out lcov
101+
- name: Push code coverage results to coveralls.io
84102
uses: coverallsapp/github-action@master
85103
with:
86104
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -115,7 +133,7 @@ jobs:
115133
with:
116134
command: test
117135
args: --verbose --release --all-features
118-
136+
119137
doc-links:
120138
name: Intra-documentation links
121139
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)