ci(web): run canvaskit host tests
This commit is contained in:
parent
f996b54dd4
commit
5c5c6ec39d
2
.github/workflows/rust-check.yml
vendored
2
.github/workflows/rust-check.yml
vendored
|
|
@ -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`
|
||||
|
|
|
|||
21
crates/op-host-web/tests/ci_workflow.rs
Normal file
21
crates/op-host-web/tests/ci_workflow.rs
Normal 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"
|
||||
);
|
||||
}
|
||||
Loading…
Reference in a new issue