Skip to content

Commit 07d5de5

Browse files
committed
experiment: use nextest + llvm-cov for coverage
1 parent 6059cae commit 07d5de5

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,15 @@ jobs:
7070
- uses: actions-rs/toolchain@v1
7171
with:
7272
override: true
73-
- name: Install cargo-binstall
74-
uses: cargo-bins/[email protected]
75-
- name: Install cargo-tarpaulin
76-
uses: actions-rs/cargo@v1
77-
with:
78-
command: binstall
79-
args: cargo-tarpaulin --no-confirm
73+
components: llvm-tools-preview
74+
- uses: taiki-e/install-action@cargo-llvm-cov
75+
- uses: taiki-e/install-action@nextest
8076
- name: Generate code coverage
8177
run: |
82-
cargo tarpaulin --avoid-cfg-tarpaulin --timeout=360 --out lcov --exclude-files 'bindings/**/*.*' --exclude-files 'ergo-rest/src/reqwest.rs' --exclude-files 'ergo-rest/src/reqwest/**/*.*' --exclude-files 'ergo-rest/src/wasm_timer.rs' --exclude-files 'ergo-rest/src/wasm_timer/**/*.*'
78+
cargo llvm-cov --lcov --output-path lcov.info --ignore-filename-regex "bindings/.*|ergo-rest/src/reqwest.*|ergo-rest/src/wasm_timer.*" nextest
79+
- name: Test
80+
run: |
81+
du -ch *lcov*
8382
- name: Push code coverage results to coveralls.io
8483
uses: coverallsapp/github-action@master
8584
with:

0 commit comments

Comments
 (0)