diff --git a/.github/workflows/test-schema-engine.yml b/.github/workflows/test-schema-engine.yml index 74ca2151bc4..d62def028f0 100644 --- a/.github/workflows/test-schema-engine.yml +++ b/.github/workflows/test-schema-engine.yml @@ -133,7 +133,7 @@ jobs: CLICOLOR_FORCE: 1 TEST_DATABASE_URL: ${{ matrix.database.url }} - - run: cargo nextest run -p sql-schema-describer + - run: cargo nextest run -p sql-schema-describer --features all-native if: ${{ !matrix.database.single_threaded }} env: CLICOLOR_FORCE: 1 diff --git a/schema-engine/sql-schema-describer/tests/test_api/mod.rs b/schema-engine/sql-schema-describer/tests/test_api/mod.rs index 1d14b2735d3..69b3227b75e 100644 --- a/schema-engine/sql-schema-describer/tests/test_api/mod.rs +++ b/schema-engine/sql-schema-describer/tests/test_api/mod.rs @@ -80,6 +80,7 @@ impl TestApi { async fn describe_impl(&self, schemas: &[&str]) -> Result { match self.sql_family() { + #[cfg(any(feature = "postgresql", feature = "cockroachdb"))] SqlFamily::Postgres => { use postgres::Circumstances; sql_schema_describer::postgres::SqlSchemaDescriber::new( @@ -93,11 +94,13 @@ impl TestApi { .describe(schemas) .await } + #[cfg(feature = "sqlite")] SqlFamily::Sqlite => { sql_schema_describer::sqlite::SqlSchemaDescriber::new(&self.database) .describe_impl() .await } + #[cfg(feature = "mysql")] SqlFamily::Mysql => { use mysql::Circumstances; sql_schema_describer::mysql::SqlSchemaDescriber::new( @@ -115,6 +118,7 @@ impl TestApi { .describe(schemas) .await } + #[cfg(feature = "mssql")] SqlFamily::Mssql => { sql_schema_describer::mssql::SqlSchemaDescriber::new(&self.database) .describe(schemas)