Skip to content

Commit

Permalink
chore: setup codecov (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
littledivy authored Jul 29, 2024
1 parent 4f00c9c commit 8bbfbcc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,18 @@ jobs:
run: cargo test --all-targets --all-features
- name: Build
run: cargo build --all-targets --all-features
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
if: ${{ matrix.os == 'ubuntu-latest' }}
- name: Generate code coverage
shell: bash
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
cargo llvm-cov --ignore-filename-regex cli.rs --lcov --output-path lcov.info
- name: Upload coverage to Codecov
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: codecov/codecov-action@v4
with:
files: lcov.info
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 8bbfbcc

Please sign in to comment.