mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-02 18:17:14 +00:00
chore: run lint step after build during preflight check
This commit is contained in:
@@ -611,14 +611,6 @@ export async function runGatewayUpdate(opts: UpdateRunnerOptions = {}): Promise<
|
|||||||
continue;
|
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(
|
const buildStep = await runStep(
|
||||||
step(`preflight build (${shortSha})`, managerScriptArgs(manager, "build"), worktreeDir),
|
step(`preflight build (${shortSha})`, managerScriptArgs(manager, "build"), worktreeDir),
|
||||||
);
|
);
|
||||||
@@ -627,6 +619,14 @@ export async function runGatewayUpdate(opts: UpdateRunnerOptions = {}): Promise<
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const lintStep = await runStep(
|
||||||
|
step(`preflight lint (${shortSha})`, managerScriptArgs(manager, "lint"), worktreeDir),
|
||||||
|
);
|
||||||
|
steps.push(lintStep);
|
||||||
|
if (lintStep.exitCode !== 0) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
selectedSha = sha;
|
selectedSha = sha;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user