diff options
| author | Weicao-CatilGrass <1992414357@qq.com> | 2026-05-13 08:40:29 +0800 |
|---|---|---|
| committer | Weicao-CatilGrass <1992414357@qq.com> | 2026-05-13 08:40:29 +0800 |
| commit | 4cd0146979f9191d59e674695030e966f18a16bb (patch) | |
| tree | fc55f2e014f8db80bee724bdbcb3cf0b7721103b | |
| parent | 5e59dd5e58a14659cd557dc43d6f5176a13fee9e (diff) | |
Add example testing to CI pipeline
| -rw-r--r-- | dev_tools/src/bin/ci.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dev_tools/src/bin/ci.rs b/dev_tools/src/bin/ci.rs index d5a108e..f2676e0 100644 --- a/dev_tools/src/bin/ci.rs +++ b/dev_tools/src/bin/ci.rs @@ -38,6 +38,7 @@ fn ci() -> Result<(), i32> { build_all()?; clippy_all()?; test_all()?; + test_examples()?; docs_refresh()?; run_cmd!("git add --renormalize .")?; @@ -45,6 +46,11 @@ fn ci() -> Result<(), i32> { Ok(()) } +fn test_examples() -> Result<(), i32> { + println_cargo_style!("Testing: examples"); + run_cmd!("cargo run --manifest-path dev_tools/Cargo.toml --bin test-examples") +} + fn build_all() -> Result<(), i32> { let cargo_tomls = cargo_tomls(); for cargo_toml in cargo_tomls { |
