diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-07-20 11:46:05 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-07-20 11:46:05 +0800 |
| commit | a5ab5528a9bb1cc523a0652f737109bb8823204b (patch) | |
| tree | c85d143c778748788b98c3ad0c34f7e7a6a4ca8a | |
| parent | d11d5cf4af0e6a15d37260361e9849ea99d15836 (diff) | |
feat(ci): add coverage test job with cargo-llvm-cov
| -rw-r--r-- | .github/workflows/ci.yml | 6 | ||||
| -rw-r--r-- | .run/src/bin/cov-test.rs | 1 | ||||
| -rw-r--r-- | README.md | 1 |
3 files changed, 7 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 332dda0..0a6a9a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -85,6 +85,12 @@ jobs: - name: Build API docs run: cargo run --manifest-path .run/Cargo.toml --bin deploy-api-docs + - name: Install cargo-llvm-cov + run: cargo install cargo-llvm-cov + + - name: Run cov-test + run: cargo run --manifest-path .run/Cargo.toml --bin cov-test + - name: Setup Pages uses: actions/configure-pages@v5 - name: Upload artifact diff --git a/.run/src/bin/cov-test.rs b/.run/src/bin/cov-test.rs index e5b7f1e..a53f74c 100644 --- a/.run/src/bin/cov-test.rs +++ b/.run/src/bin/cov-test.rs @@ -1,5 +1,4 @@ use std::fs; -use std::path::PathBuf; use tools::{println_cargo_style, run_cmd}; const OUTPUT_DIR: &str = "docs/cov-test"; @@ -165,4 +165,5 @@ See [LICENSE-MIT](LICENSE-MIT) or [LICENSE-APACHE](LICENSE-APACHE) file for deta - 💡 Examples - [Github](https://mingling-rs.github.io/mingling/docs/examples.html) - 📖 Help Doc - [EN](https://mingling-rs.github.io/mingling/docs/doc.html#/) | [中文](https://mingling-rs.github.io/mingling/docs/_zh_CN/index.html#/) - 📖 API Doc - [docs.rs](https://docs.rs/mingling/latest/mingling/) | [latest](https://mingling-rs.github.io/mingling/docs/api-docs/mingling/) +- 📖 Coverage Test - [LLVM Coverage](https://mingling-rs.github.io/mingling/docs/cov-test/) - 📖 Dev Doc - [Github](https://mingling-rs.github.io/mingling/docs/dev/) |
