diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 44d4ed2a..682c0284 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -44,12 +44,12 @@ jobs: echo "> Modern, high-performance CMS for Habbo hotel emulators — built on Next.js 16, React 19 and Prisma 7. Integrates with Polaris / Arcturus Morningstar databases." echo "" echo "## Menu" - echo "- [What is EpicNext-CMS?](#what-is-epicnext-cms)" - echo "- [System Requirements](#system-requirements)" - echo "- [Installation Wizard](#installation-wizard)" - echo "- [How it is used](#how-it-is-used)" - echo "- [Changes](#changes)" - echo "- [Linked repositories](#linked-repositories)" + echo "- [What is EpicNext-CMS?](#user-content-what-is-epicnext-cms)" + echo "- [System Requirements](#user-content-system-requirements)" + echo "- [Installation Wizard](#user-content-installation-wizard)" + echo "- [How it is used](#user-content-how-it-is-used)" + echo "- [Changes](#user-content-changes)" + echo "- [Linked repositories](#user-content-linked-repositories)" echo "" echo '' echo "## What is EpicNext-CMS?" diff --git a/src/lib/deploy-workflow-contract.test.ts b/src/lib/deploy-workflow-contract.test.ts index e7d0840e..6854a80c 100644 --- a/src/lib/deploy-workflow-contract.test.ts +++ b/src/lib/deploy-workflow-contract.test.ts @@ -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);