diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 00a5dd8040c700..e0a78a75ff9ee4 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/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 38d720c94406b6..207f616ee480ff 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 _dir_raii = 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 _dir_raii = sh.push_dir("crates/bevy_reflect/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) {