Skip to content

Commit

Permalink
Merge pull request #22 from raizo07/CI-setup
Browse files Browse the repository at this point in the history
fix: add Cov after test suites
  • Loading branch information
raduciobanu22 authored Feb 4, 2025
2 parents 01df3f1 + 27a3cc3 commit 7a4a60f
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
components: rustfmt, clippy, llvm-tools-preview

- name: Rust Cache
uses: Swatinem/rust-cache@v2
Expand All @@ -34,24 +34,10 @@ jobs:
- name: Run tests
run: cargo test --all-features

coverage:
name: Code coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: llvm-tools-preview

- name: Rust Cache
uses: Swatinem/rust-cache@v2

- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov

- name: Generate code coverage
- name: Generate and upload coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info

- name: Upload coverage to Codecov
Expand Down

0 comments on commit 7a4a60f

Please sign in to comment.