Skip to content

Commit ad8347b

Browse files
committed
abort if build failed
1 parent f0424e0 commit ad8347b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/ci-test/build_changed.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ buildForTests(config, buildAppExp);
5959
async function buildForTests(config: TestConfig, buildAppExp = false) {
6060
try {
6161
const testTasks = filterTasks(await getTestTasks(), config);
62-
console.log(testTasks);
62+
6363
if (testTasks.length === 0) {
6464
console.log(chalk`{green No test tasks. Skipping all builds }`);
6565
return;
@@ -103,5 +103,6 @@ async function buildForTests(config: TestConfig, buildAppExp = false) {
103103
await spawn('npx', lernaCmd, { stdio: 'inherit', cwd: root });
104104
} catch (e) {
105105
console.error(chalk`{red ${e}}`);
106+
process.exit(1);
106107
}
107108
}

0 commit comments

Comments
 (0)