fix: scope deploy contract test to deploy job; menu links use Gitea user-content anchors
This commit is contained in:
1 parent
43a624bbe7
commit
c0975f8a43
2 files changed
+12
-9
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user