Add dependency on serialize for Rosetta tests (#150)

* Add dependency on serialize for Rosetta tests

Fixes #149

* Also run default cargo test on CI
This commit is contained in:
Pelle Johnsen
2020-08-25 19:51:27 +02:00
committed by GitHub
parent 92c1ffb588
commit 6a3af2fe87
3 changed files with 7 additions and 2 deletions

View File

@@ -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

View File

@@ -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<Module, ParseError> {

View File

@@ -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;