Skip to content

Commit adb3ff1

Browse files
author
Mikhail Vasilyev
committed
CI: integrate with codecov
1 parent d052ea0 commit adb3ff1

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,22 @@ jobs:
6868
env:
6969
RUSTFLAGS: --cfg docsrs -Dwarnings
7070
RUSTDOCFLAGS: --cfg docsrs -Dwarnings
71+
72+
coverage:
73+
name: Code coverage
74+
runs-on: ubuntu-latest
75+
needs: checks
76+
steps:
77+
- uses: actions/checkout@v5
78+
- uses: dtolnay/rust-toolchain@stable
79+
- uses: taiki-e/install-action@v2
80+
with:
81+
tool: nextest,cargo-llvm-cov
82+
- name: Generate code coverage
83+
run: cargo llvm-cov nextest --all-features --workspace --ignore-run-fail --lcov > lcov.txt
84+
- name: Upload coverage report
85+
uses: codecov/codecov-action@v5
86+
with:
87+
fail_ci_if_error: true
88+
files: ./lcov.txt
89+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)