mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-27 07:34:27 +02:00
Merge pull request #714 from ClementTsang/switch_to_llvm_cov
Experiment with llvm-cov over tarpaulin. Tarpaulin is supposed to be switching to something similar to how this works in the future as well, so I might switch back then if I switch now.
This commit is contained in:
commit
8a133908f4
11
.github/workflows/coverage.yml
vendored
11
.github/workflows/coverage.yml
vendored
@ -19,8 +19,7 @@ jobs:
|
|||||||
uses: fkirc/skip-duplicate-actions@38c3738dcac87b41e2b7038775457756c793566e # https://github.com/fkirc/skip-duplicate-actions/commit/38c3738dcac87b41e2b7038775457756c793566e
|
uses: fkirc/skip-duplicate-actions@38c3738dcac87b41e2b7038775457756c793566e # https://github.com/fkirc/skip-duplicate-actions/commit/38c3738dcac87b41e2b7038775457756c793566e
|
||||||
with:
|
with:
|
||||||
concurrent_skipping: "same_content_newer"
|
concurrent_skipping: "same_content_newer"
|
||||||
skip_after_successful_duplicate: "true"
|
skip_after_successful_duplicate: "false"
|
||||||
paths: '["tests/**", "src/**", ".github/workflows/coverage.yml", ".cargo/**", "Cargo.toml", "Cargo.lock", "build.rs"]'
|
|
||||||
do_not_skip: '["workflow_dispatch"]'
|
do_not_skip: '["workflow_dispatch"]'
|
||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
@ -41,15 +40,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
key: ${{ matrix.triple.target }}
|
key: ${{ matrix.triple.target }}
|
||||||
|
|
||||||
- name: Install tarpaulin
|
- name: Install cargo-llvm-cov
|
||||||
run: |
|
run: |
|
||||||
cargo install cargo-tarpaulin
|
rustup component add llvm-tools-preview
|
||||||
|
cargo install cargo-llvm-cov --version 0.3.0
|
||||||
|
|
||||||
- name: Generate code coverage
|
- name: Generate code coverage
|
||||||
run: |
|
run: |
|
||||||
cargo tarpaulin --verbose --all-features --workspace --run-types AllTargets --timeout 120 --out Xml
|
cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
|
||||||
|
|
||||||
- name: Upload to codecov.io
|
- name: Upload to codecov.io
|
||||||
uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # 2.1.0
|
uses: codecov/codecov-action@f32b3a3741e1053eb607407145bc9619351dc93b # 2.1.0
|
||||||
with:
|
with:
|
||||||
|
files: lcov.info
|
||||||
fail_ci_if_error: true
|
fail_ci_if_error: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user