-
Notifications
You must be signed in to change notification settings - Fork 15
53 lines (46 loc) · 1.63 KB
/
_11_coverage.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
on:
workflow_call:
inputs:
test_features:
description: Features to enable in tests
type: string
default: "runtime-benchmarks,slow-tests"
env:
FORCE_COLOR: 1
jobs:
unit-tests:
runs-on: namespace-profile-rust-builder
container:
image: "ghcr.io/${{ github.repository }}/rust-base:nightly-2024-11-23"
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout 🛒
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: cargo cf-test-ci --locked
run: |
cargo cf-test-ci --locked
timeout-minutes: 23
coverage:
runs-on: namespace-profile-rust-builder
container:
image: "ghcr.io/${{ github.repository }}/rust-base:nightly-2024-11-23"
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout 🛒
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- name: Install cargo-llvm-cov 💿
uses: taiki-e/install-action@c2648687d6fe1a5a70a4b65c84715cafab1f3451
with:
tool: cargo-llvm-cov
- name: Generate code coverage ✨
run: cargo llvm-cov --lib --features ${{ inputs.test_features}} --workspace --codecov --output-path lcov.info
- name: Upload coverage to Codecov 📊
uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238
with:
token: ${{ secrets.CF_BACKEND_CODECOV_TOKEN }} # not required for public repos
files: lcov.info
fail_ci_if_error: false