From 84e34421b064600a69063f573c09ed6e7bdc6c1f Mon Sep 17 00:00:00 2001 From: Gino Valente Date: Tue, 27 Dec 2022 12:57:14 -0800 Subject: [PATCH] Add bevy_reflect_compile_fail_tests to CI --- .github/workflows/ci.yml | 1 + tools/ci/src/main.rs | 24 ++++++++++++++++++------ 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 00a5dd8040c70..c5b282b74a27c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -108,6 +108,7 @@ jobs: ~/.cargo/git/db/ target/ crates/bevy_ecs_compile_fail_tests/target/ + crates/bevy_reflect_compile_fail_tests/target/ key: ${{ runner.os }}-cargo-check-compiles-${{ hashFiles('**/Cargo.toml') }} - uses: dtolnay/rust-toolchain@stable with: diff --git a/tools/ci/src/main.rs b/tools/ci/src/main.rs index 38d720c94406b..9d20e6ccaa66d 100644 --- a/tools/ci/src/main.rs +++ b/tools/ci/src/main.rs @@ -88,12 +88,24 @@ fn main() { } if what_to_run.contains(Check::COMPILE_FAIL) { - // Run UI tests (they do not get executed with the workspace tests) - // - See crates/bevy_ecs_compile_fail_tests/README.md - let _subdir = sh.push_dir("crates/bevy_ecs_compile_fail_tests"); - cmd!(sh, "cargo test --target-dir ../../target") - .run() - .expect("Compiler errors of the ECS compile fail tests seem to be different than expected! Check locally and compare rust versions."); + { + // ECS Compile Fail Tests + // Run UI tests (they do not get executed with the workspace tests) + // - See crates/bevy_ecs_compile_fail_tests/README.md + let _subdir = sh.push_dir("crates/bevy_ecs_compile_fail_tests"); + cmd!(sh, "cargo test --target-dir ../../target") + .run() + .expect("Compiler errors of the ECS compile fail tests seem to be different than expected! Check locally and compare rust versions."); + } + { + // Reflect Compile Fail Tests + // Run tests (they do not get executed with the workspace tests) + // - See crates/bevy_ecs_compile_fail_tests/README.md + let _subdir = sh.push_dir("crates/bevy_reflect_compile_fail_tests"); + cmd!(sh, "cargo test --target-dir ../../target") + .run() + .expect("Compiler errors of the Reflect compile fail tests seem to be different than expected! Check locally and compare rust versions."); + } } if what_to_run.contains(Check::TEST) {