-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (31 loc) · 954 Bytes
/
Copy pathsub_code_coverage.yml
File metadata and controls
39 lines (31 loc) · 954 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
name: Code Coverage (Subworkflow)
on:
workflow_call:
permissions:
contents: read
env:
CARGO_TERM_COLOR: always
jobs:
coverage:
name: Code Coverage (Ubuntu 24.04 x86-64)
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- name: Restore Cargo downloads
uses: $/.github/actions/restore-cargo-downloads
- name: Install Rust stable
uses: dtolnay/rust-toolchain@6bed0761d98439e5a578e2877258200ad565ba87 # stable
with:
toolchain: stable
components: llvm-tools-preview
- name: Install cargo-llvm-cov via binstall
uses: taiki-e/install-action@1ed6d7be6168f6c9046541087ff549b6bc581fdf # v2.87.2
with:
tool: cargo-llvm-cov
- name: Run coverage
run: |
cargo llvm-cov \
--locked \
--summary-only