Skip to content

Commit

Permalink
Setup coverage with codecov.io (#635)
Browse files Browse the repository at this point in the history
  • Loading branch information
sholderbach authored Sep 15, 2023
1 parent 33828e5 commit 6739c6a
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ jobs:

- name: Setup Rust toolchain
uses: actions-rust-lang/[email protected]

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

- name: Rustfmt
uses: actions-rs/[email protected]
Expand All @@ -53,13 +54,16 @@ jobs:


- name: Tests
uses: actions-rs/[email protected]
with:
command: nextest
args: run --all ${{ matrix.flags }}
run: cargo llvm-cov nextest --all ${{ matrix.flags }} --lcov --output-path lcov.info

- name: Doctests
uses: actions-rs/[email protected]
with:
command: test
args: --doc ${{ matrix.flags }}

- name: Upload coverage
uses: codecov/codecov-action@v3
with:
files: lcov.info

0 comments on commit 6739c6a

Please sign in to comment.