mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 21:07:01 -06:00
fix(release): include evidence validator in decision checkout (#130803)
This commit is contained in:
@@ -9753,6 +9753,30 @@ printf '%s\n' "\${CURL_SUCCESS_IP:-203.0.113.7}"
|
||||
expect(telegramProvenanceHelper).not.toContain(".baseRefName ==");
|
||||
});
|
||||
|
||||
it("checks out the complete Release Decision evidence validator closure", () => {
|
||||
const workflow = readWorkflow(".github/workflows/full-release-validation.yml");
|
||||
const checkout = workflow.jobs.release_decision.steps.find(
|
||||
(step: WorkflowStep) => step.name === "Checkout release decision tooling",
|
||||
);
|
||||
const sparseCheckoutPaths = String(checkout?.with?.["sparse-checkout"] ?? "")
|
||||
.split("\n")
|
||||
.map((line) => line.trim())
|
||||
.filter(Boolean);
|
||||
|
||||
expect(sparseCheckoutPaths).toEqual([
|
||||
"scripts/full-release-validation-state.mjs",
|
||||
"scripts/full-release-validation-policy.mjs",
|
||||
"scripts/release-ci-summary.mjs",
|
||||
"scripts/lib/plain-gh.mjs",
|
||||
]);
|
||||
for (const sparsePath of sparseCheckoutPaths) {
|
||||
expect({ sparsePath, exists: existsSync(sparsePath) }).toEqual({
|
||||
sparsePath,
|
||||
exists: true,
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
it("keeps maturity scorecard release docs opt-in from release checks", () => {
|
||||
const releaseWorkflow = readReleaseChecksWorkflow();
|
||||
const job = releaseWorkflow.jobs.maturity_scorecard_release_checks;
|
||||
|
||||
Reference in New Issue
Block a user