|
|
@@ -104,10 +104,14 @@ console.log( 'Done' );
|
|
|
if ( Object.values( failedChecks ).some( checksSet => checksSet.size > 0 ) ) {
|
|
|
console.log( '\n---\n' );
|
|
|
|
|
|
+ console.log( `🔥 ${ RED }Errors were detected by the CI.${ NO_COLOR }\n\n` );
|
|
|
+
|
|
|
showFailedCheck( 'dependency', 'The following packages have dependencies that are not included in its package.json' );
|
|
|
showFailedCheck( 'unitTests', 'The following packages did not pass unit tests' );
|
|
|
showFailedCheck( 'codeCoverage', 'The following packages did not provide required code coverage' );
|
|
|
|
|
|
+ console.log( '\n---\n' );
|
|
|
+
|
|
|
process.exit( 1 ); // Exit code 1 will break the CI build.
|
|
|
}
|
|
|
|