mirror of
https://github.com/Drop-OSS/drop
synced 2026-08-27 14:23:05 -04:00
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:
parent
5eff16a454
commit
e03217ed70
3 changed files with 51 additions and 0 deletions
17
.github/workflows/cli-ci.yml
vendored
17
.github/workflows/cli-ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
17
.github/workflows/desktop-ci.yml
vendored
17
.github/workflows/desktop-ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
17
.github/workflows/droplet-ci.yml
vendored
17
.github/workflows/droplet-ci.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue