Skip to content

Commit

Permalink
try with cargo llvm cov instead of tarpaulin
Browse files Browse the repository at this point in the history
  • Loading branch information
pkhuong committed Sep 10, 2023
1 parent f1152ac commit d375c63
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,19 @@ jobs:
- name: Run tests
run: cargo test --verbose

- name: Run cargo-tarpaulin
uses: actions-rs/tarpaulin@v0.1
- name: Install clippy
run: rustup component add clippy

- name: Run clippy
uses: actions-rs/clippy-check@v1
with:
version: '0.15.0'
args: '-- --test-threads 1'
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features

- 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 to coveralls
uses: coverallsapp/github-action@v2
Expand All @@ -35,11 +43,3 @@ jobs:
name: code-coverage-report
path: cobertura.xml

- name: Install clippy
run: rustup component add clippy

- name: Run clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features

0 comments on commit d375c63

Please sign in to comment.