fix(ci): remove duplicate deploy job that raced production Deploy
CI / check (push) Successful in 21s
Deploy / release (push) Skipped
Deploy / deploy (push) Successful in 58s

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
SimoandCursor committed 2026-07-30 20:50:05 +02:00
1 parent 98613af875
commit bfbc02c75d
2 files changed
+25 -31

No files matched your search

+25
View File
@@ -0,0 +1,25 @@
import { readFileSync } from "node:fs";
import { resolve } from "node:path";
import { describe, expect, it } from "vitest";
describe("CI workflow", () => {
const workflow = readFileSync(
resolve(process.cwd(), ".gitea/workflows/ci.yaml"),
"utf8",
);
it("only runs check (lint/typecheck/test), not production deploy", () => {
expect(workflow).toContain("pnpm biome:lint");
expect(workflow).toContain("pnpm typecheck");
expect(workflow).toContain("pnpm test");
expect(workflow).not.toMatch(/\n\s*deploy:\s*\n/);
expect(workflow).not.toContain("pm2 restart");
expect(workflow).not.toContain("pm2 start");
expect(workflow).not.toContain("github.ref");
});
it("uses Gitea SHA for checkout", () => {
expect(workflow).toContain("gitea.sha");
expect(workflow).toContain("SKIP_ENV_VALIDATION=1");
});
});