Skip to content

Commit d70a58b

Browse files
authored
Increase lint timeout in CI (#167)
1 parent 9d3312d commit d70a58b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Herebyfile.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ import which from "which";
1212
const __filename = url.fileURLToPath(new URL(import.meta.url));
1313
const __dirname = path.dirname(__filename);
1414

15+
const isCI = !!process.env.CI;
16+
1517
const $pipe = _$({ verbose: "short" });
1618
const $ = _$({ verbose: "short", stdio: "inherit" });
1719

@@ -134,7 +136,7 @@ export const lint = task({
134136
if (!isInstalled(customLinterPath)) {
135137
await buildCustomLinter();
136138
}
137-
await $`${customLinterPath} run ${options.fix ? ["--fix"] : []}`;
139+
await $`${customLinterPath} run ${options.fix ? ["--fix"] : []} ${isCI ? ["--timeout=5m"] : []}`;
138140
},
139141
});
140142

0 commit comments

Comments
 (0)