chore(ci): switch to cargo-llvm-cov for code coverage (#260)
This commit is contained in:
parent
fa5105deab
commit
c60a614258
|
@ -30,15 +30,17 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Install Rust toolchain
|
- name: Install Rust toolchain
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
- name: Setup cargo-tarpaulin
|
- name: Install cargo-llvm-cov
|
||||||
uses: taiki-e/install-action@cargo-tarpaulin
|
uses: taiki-e/install-action@cargo-llvm-cov
|
||||||
- name: Run tests
|
- name: Generate code coverage
|
||||||
run: cargo tarpaulin --out xml --verbose -- --test-threads 1
|
run: cargo llvm-cov --lcov --output-path lcov.info -- --test-threads 1
|
||||||
|
env:
|
||||||
|
OUT_DIR: target
|
||||||
- name: Upload reports to codecov
|
- name: Upload reports to codecov
|
||||||
uses: codecov/codecov-action@v3
|
uses: codecov/codecov-action@v3
|
||||||
with:
|
with:
|
||||||
name: code-coverage-report
|
name: code-coverage-report
|
||||||
file: cobertura.xml
|
file: lcov.info
|
||||||
flags: unit-tests
|
flags: unit-tests
|
||||||
fail_ci_if_error: true
|
fail_ci_if_error: true
|
||||||
verbose: true
|
verbose: true
|
||||||
|
|
Loading…
Reference in New Issue