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
54
55
56
57
58
59
60
61
62
63
64
65
# Codecov coverage workflow (separate from main CI per observability split).
# Third-party Actions are pinned to immutable commit SHAs (Aikido supply-chain policy).
name: Codecov
on:
push:
branches:
pull_request:
branches:
jobs:
codecov:
name: Codecov
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install Rust 1.97.1
uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # pinned action
with:
toolchain: 1.97.1
components: clippy, rustfmt, llvm-tools-preview
- name: Rust Cache
uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 # v2
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@c44f6b046f1c29ae5918b1e0bfdbb2f1813836fd # pinned (taiki-e/install-action v2)
with:
tool: cargo-llvm-cov
- name: Generate coverage (lcov)
run: cargo llvm-cov --all-features --lcov --output-path lcov.info
# Generate JUnit XML via nextest ci profile (.config/nextest.toml).
- name: Install nextest
uses: taiki-e/install-action@c44f6b046f1c29ae5918b1e0bfdbb2f1813836fd # pinned (taiki-e/install-action v2)
with:
tool: nextest
version: '0.9.70'
# JUnit output via nextest profile (see .config/nextest.toml).
- name: Run tests (JUnit)
run: |
cargo nextest run --all-features --profile ci
cp target/nextest/ci/junit.xml junit.xml
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@0fa95f0e1eeaafde2c782583b36b28ad0d8c77d3 # v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
- name: Codecov
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: lcov.info
slug: Limen-Neural/neuromod
fail_ci_if_error: false
verbose: true