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