forked from Akmot9/Packet-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (30 loc) · 839 Bytes
/
coverage.yml
File metadata and controls
38 lines (30 loc) · 839 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
name: Coverage
on:
workflow_dispatch:
workflow_run:
workflows: ["CI"]
types:
- completed
jobs:
coverage:
name: Compute Coverage
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install Tarpaulin
run: cargo install cargo-tarpaulin
- name: Run Coverage
run: cargo tarpaulin --verbose --timeout 120 --out Lcov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./lcov.info
- name: Trigger publish workflow
if: success()
run: gh workflow run publish.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}