fix(ci): migrate on tag release and wire drizzle schema generate
Co-authored-by: Cursor <[email protected]>
This commit is contained in:
1 parent
20b85381fe
commit
67656a9aad
5 files changed
+91
No files matched your search
@@ -31,4 +31,14 @@ describe("CI workflow", () => {
|
||||
expect(workflow).toContain("Creating release for");
|
||||
expect(workflow).toContain("startsWith(gitea.ref_name, 'v')");
|
||||
});
|
||||
|
||||
it("applies CMS migrations on tag release before build", () => {
|
||||
const release = workflow.slice(workflow.indexOf("\n release:"));
|
||||
expect(release).toContain("pnpm db:migrate");
|
||||
expect(release).toContain("unset DATABASE_URL");
|
||||
const migrateAt = release.indexOf("pnpm db:migrate");
|
||||
const buildAt = release.indexOf("pnpm build");
|
||||
expect(migrateAt).toBeGreaterThan(-1);
|
||||
expect(buildAt).toBeGreaterThan(migrateAt);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user