fix: scope deploy contract test to deploy job; menu links use Gitea user-content anchors
Deploy / release (push) Successful in 12s
Deploy / deploy (push) Skipped

This commit is contained in:
openhands committed 2026-07-20 20:59:37 +02:00
1 parent 43a624bbe7
commit c0975f8a43
2 files changed
+12 -9

No files matched your search

+6 -3
View File
@@ -44,9 +44,12 @@ describe("production deploy workflow", () => {
it("runs typecheck and tests before build", () => {
expect(workflow).toContain("pnpm typecheck");
expect(workflow).toContain("pnpm test");
const typecheckAt = workflow.indexOf("pnpm typecheck");
const testAt = workflow.indexOf("pnpm test");
const buildAt = workflow.indexOf("pnpm build");
// Scope to the deploy job: the release job's documentation body also
// mentions these commands, which must not affect this contract.
const deployJob = workflow.slice(workflow.indexOf("\n deploy:"));
const typecheckAt = deployJob.indexOf("pnpm typecheck");
const testAt = deployJob.indexOf("pnpm test");
const buildAt = deployJob.indexOf("pnpm build");
expect(typecheckAt).toBeGreaterThan(-1);
expect(testAt).toBeGreaterThan(typecheckAt);
expect(buildAt).toBeGreaterThan(testAt);