mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-05 04:25:39 -05:00
Split the GH actions CI into multiple stages (#39210)
* Split the GH actions CI into multiple stages * Add the -- for npm * Improve the CI reports * Use stylish formatting on CI * Break TSC instead * Try add the problem register for TSC only on node 12 * Fix GH Actions syntax maybe
This commit is contained in:
11
Gulpfile.js
11
Gulpfile.js
@@ -354,7 +354,6 @@ const eslint = (folder) => async () => {
|
||||
"node_modules/eslint/bin/eslint",
|
||||
"--cache",
|
||||
"--cache-location", `${folder}/.eslintcache`,
|
||||
"--format", "autolinkable-stylish",
|
||||
"--rulesdir", "scripts/eslint/built/rules",
|
||||
"--ext", ".ts",
|
||||
];
|
||||
@@ -363,11 +362,19 @@ const eslint = (folder) => async () => {
|
||||
args.push("--fix");
|
||||
}
|
||||
|
||||
// Use stylish format on CI, so that it can be picked up by GH Action's rule matchers
|
||||
if (cmdLineOptions.ci) {
|
||||
args.push("--format", "stylish");
|
||||
}
|
||||
else {
|
||||
args.push("--format", "autolinkable-stylish");
|
||||
}
|
||||
|
||||
args.push(folder);
|
||||
|
||||
log(`Linting: ${args.join(" ")}`);
|
||||
return exec(process.execPath, args);
|
||||
}
|
||||
};
|
||||
|
||||
const lintScripts = eslint("scripts");
|
||||
lintScripts.displayName = "lint-scripts";
|
||||
|
||||
Reference in New Issue
Block a user