-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (25 loc) · 987 Bytes
/
coverage.yaml
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
name: Test Coverage
on: [push]
jobs:
test:
name: generate coverage report
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install cargo-hack
uses: taiki-e/install-action@v2
with:
tool: cargo-tarpaulin
# We run the coverage report on the workspace, but we configured in codecov to only look at the pace_core crate essentially
#
# This is because we have a workspace with multiple crates, and we want to generate coverage for all of them, but we only want to
# report the coverage of the pace_core crate as this is where the main logic is
- name: Generate code coverage
run: |
cargo tarpaulin --verbose --all-features --workspace --timeout 120 --out xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: pace-rs/pace