-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (31 loc) · 960 Bytes
/
coverage.yml
File metadata and controls
41 lines (31 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Code Coverage
# Track test coverage over time
name: Coverage
on:
push:
branches: [main, next]
pull_request:
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
with:
components: llvm-tools-preview
- uses: taiki-e/install-action@cargo-llvm-cov
- uses: Swatinem/rust-cache@v2
- name: Generate coverage
run: cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info
- name: Upload to Codecov
uses: codecov/codecov-action@v5
continue-on-error: true
with:
files: ./lcov.info
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
- name: Generate coverage summary
run: |
cargo llvm-cov --all-features --workspace --json --output-path coverage.json
echo "Coverage report generated"