Skip to content

Commit

Permalink
ci: Switch to llvm-cov
Browse files Browse the repository at this point in the history
  • Loading branch information
xiamaz committed Mar 28, 2024
1 parent d253927 commit c21a785
Showing 1 changed file with 8 additions and 20 deletions.
28 changes: 8 additions & 20 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,25 +105,13 @@ jobs:
key: "${{ matrix.label }}"
cache-directories: |
~/.cargo/registry/src/**/librocksdb-sys-*
- name: Run cargo-tarpaulin with fast tests
uses: actions-rs/tarpaulin@v0.1
with:
version: 0.21.0
args: "--skip-clean -- --test-threads 1"
if: ${{ matrix.label == 'fast' }}

- name: Run cargo-tarpaulin with full tests
uses: actions-rs/tarpaulin@v0.1
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
version: 0.21.0
args: "--skip-clean --release --timeout=180 --engine=llvm -- --include-ignored"
if: ${{ matrix.label == 'full' }}

- name: Codecov submission of fast test results
uses: codecov/codecov-action@v4
with:
verbose: true
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
if: ${{ matrix.label == 'fast' }}
files: lcov.info
fail_ci_if_error: true

0 comments on commit c21a785

Please sign in to comment.