fix(ci): remove duplicate deploy job that raced production Deploy
Co-authored-by: Cursor <[email protected]>
This commit is contained in:
1 parent
98613af875
commit
bfbc02c75d
2 files changed
+25
-31
No files matched your search
@@ -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");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user