From ae49f93dd2aecdca0b4917539961b038b95a3beb Mon Sep 17 00:00:00 2001 From: Weicao-CatilGrass <1992414357@qq.com> Date: Wed, 10 Jun 2026 15:11:18 +0800 Subject: Add README code block testing to CI pipeline --- dev_tools/src/bin/ci.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'dev_tools/src/bin/ci.rs') diff --git a/dev_tools/src/bin/ci.rs b/dev_tools/src/bin/ci.rs index b7934e1..21763d1 100644 --- a/dev_tools/src/bin/ci.rs +++ b/dev_tools/src/bin/ci.rs @@ -73,6 +73,7 @@ fn ci() -> Result<(), i32> { clippy_all()?; test_all()?; test_examples()?; + test_readme()?; docs_refresh()?; run_cmd!("git add --renormalize .")?; @@ -85,6 +86,11 @@ fn test_examples() -> Result<(), i32> { run_cmd!("cargo run --manifest-path dev_tools/Cargo.toml --bin test-examples") } +fn test_readme() -> Result<(), i32> { + println_cargo_style!("Testing: readme code blocks"); + run_cmd!("cargo run --manifest-path dev_tools/Cargo.toml --bin test-readme") +} + fn build_all() -> Result<(), i32> { let cargo_tomls = cargo_tomls(); for cargo_toml in cargo_tomls { -- cgit