-
-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (25 loc) · 696 Bytes
/
Copy pathtest.yml
File metadata and controls
34 lines (25 loc) · 696 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
name: Test
on:
workflow_call:
jobs:
cli:
name: CLI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Checkout Code
- uses: dtolnay/rust-toolchain@stable
name: Install Rust Toolchain
with:
components: llvm-tools-preview
- uses: Swatinem/rust-cache@v2
name: Cache Cargo
- run: cargo install cargo-llvm-cov
name: Install cargo-llvm-cov
- run: cargo llvm-cov --fail-under-lines 80 --workspace --html
name: Run Tests
- uses: actions/upload-artifact@v4
name: Upload Coverage Report
with:
name: coverage-report
path: target/llvm-cov/