| 1 |
on: |
| 2 |
push: |
| 3 |
branches: [master] |
| 4 |
paths-ignore: |
| 5 |
- "**.md" |
| 6 |
pull_request: |
| 7 |
paths-ignore: |
| 8 |
- "**.md" |
| 9 |
|
| 10 |
name: Code Coverage |
| 11 |
|
| 12 |
jobs: |
| 13 |
coverage: |
| 14 |
name: coverage |
| 15 |
runs-on: ubuntu-latest |
| 16 |
steps: |
| 17 |
- name: checkout source |
| 18 |
uses: actions/checkout@v4 |
| 19 |
|
| 20 |
- name: Install nightly toolchain |
| 21 |
uses: dtolnay/rust-toolchain@nightly |
| 22 |
with: |
| 23 |
components: llvm-tools-preview |
| 24 |
|
| 25 |
- name: Install cargo-llvm-cov |
| 26 |
uses: taiki-e/install-action@cargo-llvm-cov |
| 27 |
|
| 28 |
- name: Run llvm-cov |
| 29 |
run: cargo llvm-cov --all-features --doctests --workspace --lcov --output-path lcov.info |
| 30 |
|
| 31 |
- name: Upload coverage to Codecov |
| 32 |
uses: codecov/codecov-action@v4 |
| 33 |
with: |
| 34 |
files: lcov.info |