ci(web): run canvaskit host tests

This commit is contained in:
Kayshen-X 2026-06-19 00:48:04 +08:00
parent f996b54dd4
commit 5c5c6ec39d
2 changed files with 23 additions and 0 deletions

View file

@ -74,6 +74,8 @@ jobs:
# smoke (memory_loop) self-uses the raster fallback instead of
# hard-failing on EGL init. Real-GPU coverage runs on dev machines.
- run: cargo test --workspace
- name: Run CanvasKit web host tests
run: cargo test -p op-host-web --features canvaskit
- run: cargo clippy --workspace --all-targets -- -D warnings
# Step 1a Phase C Task 4: spec v19 §11 + §12.3 boundary invariants.
# Linux runner has the full mobile target stdlib (`rustup target add`

View file

@ -0,0 +1,21 @@
#[test]
fn rust_check_runs_canvaskit_widget_host_tests() {
let workflow = std::fs::read_to_string(concat!(
env!("CARGO_MANIFEST_DIR"),
"/../../.github/workflows/rust-check.yml"
))
.expect("rust-check workflow is readable");
assert!(
workflow.contains("Run CanvasKit web host tests"),
"rust-check should name the CanvasKit web host test step"
);
assert!(
workflow.contains("cargo test -p op-host-web"),
"rust-check should run op-host-web tests explicitly"
);
assert!(
workflow.contains("--features canvaskit"),
"rust-check must enable the production CanvasKit web host feature"
);
}