mirror of
https://github.com/loot/loot-condition-interpreter.git
synced 2026-07-27 14:16:09 -07:00
Use cargo-llvm-cov instead of tarpaulin for code coverage
It tends to give more accurate results and run into fewer issues.
This commit is contained in:
@@ -89,8 +89,8 @@ jobs:
|
|||||||
target/
|
target/
|
||||||
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
|
||||||
- name: Install Tarpaulin
|
- name: Install cargo-llvm-cov
|
||||||
run: curl -sL https://github.com/xd009642/tarpaulin/releases/download/0.18.0/cargo-tarpaulin-0.18.0-travis.tar.gz | tar xvz -C $HOME/.cargo/bin
|
uses: taiki-e/install-action@cargo-llvm-cov
|
||||||
|
|
||||||
- name: Prepare test resources
|
- name: Prepare test resources
|
||||||
run: |
|
run: |
|
||||||
@@ -115,7 +115,7 @@ jobs:
|
|||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
- name: Build and run tests with code coverage
|
- name: Build and run tests with code coverage
|
||||||
run: cargo tarpaulin --workspace --out Lcov --avoid-cfg-tarpaulin
|
run: cargo llvm-cov --workspace --lcov --output-path lcov.info
|
||||||
|
|
||||||
- name: Upload code coverage to Coveralls
|
- name: Upload code coverage to Coveralls
|
||||||
uses: coverallsapp/github-action@v1.1.1
|
uses: coverallsapp/github-action@v1.1.1
|
||||||
|
|||||||
Reference in New Issue
Block a user