Merge pull request #6544 from nocodb/test/quick-run

test: quick run
This commit is contained in:
Raju Udava
2023-10-03 01:02:10 +05:30
committed by GitHub
15 changed files with 64 additions and 9 deletions

View File

@@ -12,6 +12,10 @@ const isPg = (context: NcContext) => context.dbType === 'pg';
const isEE = () => process.env.EE === 'true';
// run all the tests for PG; disable some tests for mysql, sqlite to reduce CI time
//
const enableQuickRun = () => (process.env.CI ? process.env.E2E_DB_TYPE : process.env.E2E_DEV_DB_TYPE) !== 'pg';
const pg_credentials = (context: NcContext) => ({
user: 'postgres',
host: 'localhost',
@@ -65,4 +69,4 @@ async function sqliteExec(query) {
}
}
export { sqliteExec, mysqlExec, isMysql, isSqlite, isPg, pgExec, isEE };
export { sqliteExec, mysqlExec, isMysql, isSqlite, isPg, pgExec, isEE, enableQuickRun };