ci(types): generate Next route types before checking
This commit is contained in:
@@ -31,8 +31,8 @@ jobs:
|
||||
REDIS_INTEGRATION_URL: ${{ secrets.REDIS_INTEGRATION_URL }}
|
||||
run: bun run test
|
||||
|
||||
- name: Check TypeScript
|
||||
run: bunx tsc --noEmit
|
||||
- name: Generate route types and check TypeScript
|
||||
run: bun run typecheck
|
||||
|
||||
- name: Lint
|
||||
run: bun run lint
|
||||
|
||||
@@ -143,7 +143,7 @@ Run the complete host-safe verification set with:
|
||||
```bash
|
||||
bun install --frozen-lockfile
|
||||
bun run test
|
||||
bunx tsc --noEmit
|
||||
bun run typecheck
|
||||
bun run lint
|
||||
kubectl kustomize k8s/ >/dev/null
|
||||
```
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "eslint .",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"typecheck": "next typegen && tsc --noEmit",
|
||||
"test": "vitest run",
|
||||
"test:watch": "vitest",
|
||||
"test:coverage": "vitest run --coverage",
|
||||
|
||||
@@ -88,7 +88,7 @@ describe("production deployment contract", () => {
|
||||
|
||||
expect(workflow).toContain("bun install --frozen-lockfile");
|
||||
expect(workflow).toContain("bun run test");
|
||||
expect(workflow).toContain("bunx tsc --noEmit");
|
||||
expect(workflow).toContain("bun run typecheck");
|
||||
expect(workflow).toContain("bun run lint");
|
||||
expect(workflow).toContain("kubectl kustomize k8s/");
|
||||
expect(workflow).toContain("target: app");
|
||||
|
||||
Reference in New Issue
Block a user