Skip to content

Commit 5030aab

Browse files
committed
Fix coverage in GitHub actions
1 parent 6f10b2b commit 5030aab

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/master-coverage.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ jobs:
1515
with:
1616
toolchain: nightly
1717
- uses: Swatinem/rust-cache@v2
18-
- name: Run cargo-tarpaulin
19-
uses: actions-rs/[email protected]
18+
- uses: baptiste0928/cargo-install@v2
2019
with:
21-
timeout: 10
22-
out-type: Lcov
23-
args: '--workspace --all-features --ignore-tests --line --output-dir coverage'
20+
crate: cargo-tarpaulin
21+
- name: Run cargo-tarpaulin
22+
run: |
23+
cargo +nightly tarpaulin --workspace --all-features --ignore-tests --line --output-dir coverage --timeout 10 --out Lcov
2424
- name: Post to Coveralls
2525
uses: coverallsapp/github-action@master
2626
with:

.github/workflows/pull-request.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ jobs:
6767
with:
6868
toolchain: nightly
6969
- uses: Swatinem/rust-cache@v2
70-
- name: Run cargo-tarpaulin
71-
uses: actions-rs/[email protected]
70+
- uses: baptiste0928/cargo-install@v2
7271
with:
73-
timeout: 10
74-
out-type: Lcov
75-
args: '--workspace --all-features --ignore-tests --line --output-dir coverage'
72+
crate: cargo-tarpaulin
73+
- name: Run cargo-tarpaulin
74+
run: |
75+
cargo +nightly tarpaulin --workspace --all-features --ignore-tests --line --output-dir coverage --timeout 10 --out Lcov
7676
- name: Post to Coveralls
7777
uses: coverallsapp/github-action@master
7878
with:

0 commit comments

Comments
 (0)