Skip to content

Commit

Permalink
ci(codecov): generate the covrage report and upload it
Browse files Browse the repository at this point in the history
  • Loading branch information
0x61nas committed Sep 27, 2023
1 parent a0f198b commit 2cf68e4
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 @@ -112,6 +112,21 @@ jobs:
- name: Cache Cargo dependencies
uses: Swatinem/rust-cache@v2

- name: Generate code coverage
run: cargo llvm-cov --lcov --output-path lcov.info
env:
NO_COLOR: 1
OUT_DIR: target

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
name: code-coverage-report
files: lcov.info
fail_ci_if_error: true
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}

lint:
name: Lint
runs-on: ubuntu-latest
Expand Down

0 comments on commit 2cf68e4

Please sign in to comment.