test(release): validate only the selected preflight job

Scope the steps schema to the release job whose preflight is executed, allowing unrelated reusable-workflow jobs such as qualification. Preserve all four valid and invalid metadata execution checks.

Reproduced on main ec3db3745: 35 passed, 4 failed. After the fix: 104 release and CI boundary tests pass; check:fast and format:check pass.
This commit is contained in:
morluto
2026-10-13 18:24:40 +08:00
parent 2995ec6910
commit 747e729914
@@ -649,9 +649,8 @@ it.skipIf(process.platform === "win32").each([
const sourceSha = await candidate(f, valid ? "6.0.0" : "5.1.0"); const sourceSha = await candidate(f, valid ? "6.0.0" : "5.1.0");
const workflow = z const workflow = z
.object({ .object({
jobs: z.record( jobs: z.object({
z.string(), [job]: z.object({
z.object({
steps: z.array( steps: z.array(
z.object({ z.object({
name: z.string().optional(), name: z.string().optional(),
@@ -659,7 +658,7 @@ it.skipIf(process.platform === "win32").each([
}), }),
), ),
}), }),
), }),
}) })
.parse( .parse(
parse( parse(