sanitycheck: promote warnings to errors in CI

pull/3408/head
Rob Pilling 2024-05-09 12:27:34 +01:00
parent 89ea6d0045
commit 33a2efeb45
1 changed files with 3 additions and 0 deletions

View File

@ -400,4 +400,7 @@ console.log(`${errorCount} errors, ${warningCount} warnings`);
console.log("==================================");
if (errorCount) {
process.exit(1);
} else if ("CI" in process.env && warningCount) {
console.log("Running in CI, raising an error from warnings");
process.exit(1);
}