diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index d896407c6b..0d9ead518e 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -13,6 +13,11 @@ jobs: toolchain: stable override: true - uses: actions-rs/cargo@v1 + name: Default test + with: + command: test + - uses: actions-rs/cargo@v1 + name: Test all features with: command: test args: --all-features diff --git a/src/front/glsl_new/mod.rs b/src/front/glsl_new/mod.rs index 541c3261c3..d937beda12 100644 --- a/src/front/glsl_new/mod.rs +++ b/src/front/glsl_new/mod.rs @@ -15,7 +15,7 @@ mod parser; mod parser_tests; mod token; -#[cfg(test)] +#[cfg(all(test, feature = "serialize"))] mod rosetta_tests; pub fn parse_str(source: &str, entry: String, stage: ShaderStage) -> Result { diff --git a/src/front/mod.rs b/src/front/mod.rs index 757101cf62..62117c3fd2 100644 --- a/src/front/mod.rs +++ b/src/front/mod.rs @@ -7,7 +7,7 @@ pub mod glsl_new; #[cfg(feature = "spirv-in")] pub mod spv; pub mod wgsl; -#[cfg(test)] +#[cfg(all(test, feature = "serialize"))] mod wgsl_rosetta_tests; use crate::arena::Arena;