Skip to content

Commit 75a7e44

Browse files
authored
test(ci): check the deploy typecheck step as written, not expanded (#8406)
1 parent f41fc05 commit 75a7e44

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎.github/scripts/ci-test-routing.test.mjs‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,10 @@ describe('deploy.yml push gating', () => {
648648
// break the `build` check on every open PR (#3197).
649649
const gates = runLines(workflow.jobs.typecheck);
650650
expect(gates).toContain('scripts/verify-exports.mjs');
651-
expect(gates).toMatch(/^pnpm typecheck$/m);
651+
// runLines expands root scripts, so look for the step as written.
652+
const steps = workflow.jobs.typecheck.steps.map(step => step.run ?? '');
653+
expect(steps.some(run => /^pnpm typecheck$/m.test(run))).toBe(true);
654+
expect(gates).toContain('--if-present');
652655
// Every package that guarded main still defines the script it reaches.
653656
for (const dir of [
654657
'packages/core',

0 commit comments

Comments
 (0)