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 authored and GitHub committed 2020-08-25 13:51:27 -04:00
1 parent 92c1ffb588
commit 6a3af2fe87
3 files changed
+7 -2

No files matched your search

+5
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
+1 -1
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> {
+1 -1
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;