chore: run lint step after build during preflight check

This commit is contained in:
Gustavo Madeira Santana
2026-02-05 21:22:27 -05:00
parent ac0c2f260f
commit 7b2a221212

View File

@@ -611,14 +611,6 @@ export async function runGatewayUpdate(opts: UpdateRunnerOptions = {}): Promise<
continue;
}
const lintStep = await runStep(
step(`preflight lint (${shortSha})`, managerScriptArgs(manager, "lint"), worktreeDir),
);
steps.push(lintStep);
if (lintStep.exitCode !== 0) {
continue;
}
const buildStep = await runStep(
step(`preflight build (${shortSha})`, managerScriptArgs(manager, "build"), worktreeDir),
);
@@ -627,6 +619,14 @@ export async function runGatewayUpdate(opts: UpdateRunnerOptions = {}): Promise<
continue;
}
const lintStep = await runStep(
step(`preflight lint (${shortSha})`, managerScriptArgs(manager, "lint"), worktreeDir),
);
steps.push(lintStep);
if (lintStep.exitCode !== 0) {
continue;
}
selectedSha = sha;
break;
}