mirror of https://github.com/espruino/BangleApps
sanitycheck: promote warnings to errors in CI
parent
89ea6d0045
commit
33a2efeb45
|
@ -400,4 +400,7 @@ console.log(`${errorCount} errors, ${warningCount} warnings`);
|
||||||
console.log("==================================");
|
console.log("==================================");
|
||||||
if (errorCount) {
|
if (errorCount) {
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
|
} else if ("CI" in process.env && warningCount) {
|
||||||
|
console.log("Running in CI, raising an error from warnings");
|
||||||
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue