fix: preserve Next.js deploy cache
Local Build and Deploy / deploy (push) Successful in 45s

This commit is contained in:
Simo committed 2026-07-12 15:17:16 +02:00
1 parent f0b4bc1630
commit 41002aa36d
2 files changed
+17 -4

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
import { readFileSync } from "node:fs";
import { resolve } from "node:path";
import { describe, expect, it } from "vitest";
describe("production deploy workflow", () => {
const workflow = readFileSync(resolve(process.cwd(), ".gitea/workflows/deploy.yaml"), "utf8");
it("preserves the Next.js incremental build cache", () => {
expect(workflow).not.toMatch(/rm\s+-rf[^\n]*\.next/);
expect(workflow).toContain("pnpm install --frozen-lockfile");
});
});