ci: add cargo-llvm-cov coverage steps to Rust CI workflows

Installs cargo-llvm-cov, generates LCOV coverage, uploads to Codecov across droplet-ci, cli-ci, and desktop-ci. All coverage steps continue-on-error to avoid blocking CI on thresholds.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
John Smith 2026-07-25 19:10:16 -04:00
parent 5eff16a454
commit e03217ed70
3 changed files with 51 additions and 0 deletions

View file

@ -54,6 +54,23 @@ jobs:
- name: Run tests
run: cargo test --all-features --all --verbose
- name: Install LLVM tools (cargo-llvm-cov)
uses: dtolnay/rust-toolchain@4fd1da8b0805d2d2e936788875a7d65dbd677dc2 # nightly
with:
components: llvm-tools-preview
- name: Generate code coverage
continue-on-error: true
run: |
cargo install cargo-llvm-cov --locked
cargo llvm-cov --all-features --workspace --codecov --output-path coverage.lcov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc60cb71e0fce7b # v5
with:
files: cli/coverage.lcov
fail_ci_if_error: false
# Advisory until noise rate is low. Tighten to blocking after triage.
- name: Audit dependencies
continue-on-error: true

View file

@ -59,6 +59,23 @@ jobs:
continue-on-error: true
run: cargo test --workspace --no-fail-fast
- name: Install LLVM tools (cargo-llvm-cov)
uses: dtolnay/rust-toolchain@4fd1da8b0805d2d2e936788875a7d65dbd677dc2 # nightly
with:
components: llvm-tools-preview
- name: Generate code coverage
continue-on-error: true
run: |
cargo install cargo-llvm-cov --locked
cargo llvm-cov --all-features --workspace --codecov --output-path coverage.lcov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc60cb71e0fce7b # v5
with:
files: desktop/src-tauri/coverage.lcov
fail_ci_if_error: false
# Advisory until noise rate is low. Tighten to blocking after triage.
- name: Audit dependencies
continue-on-error: true

View file

@ -55,6 +55,23 @@ jobs:
- name: Run tests
run: cargo test --all-features --all --verbose
- name: Install LLVM tools (cargo-llvm-cov)
uses: dtolnay/rust-toolchain@4fd1da8b0805d2d2e936788875a7d65dbd677dc2 # nightly
with:
components: llvm-tools-preview
- name: Generate code coverage
continue-on-error: true
run: |
cargo install cargo-llvm-cov --locked
cargo llvm-cov --all-features --workspace --codecov --output-path coverage.lcov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc60cb71e0fce7b # v5
with:
files: libraries/droplet/coverage.lcov
fail_ci_if_error: false
# Advisory until noise rate is low. Tighten to blocking after triage.
- name: Audit dependencies
continue-on-error: true