This commit is contained in:
1 parent
f0b4bc1630
commit
41002aa36d
2 files changed
+17
-4
No files matched your search
@@ -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");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user