Skip to content

Commit cc5cb45

Browse files
AminMemarianiclaude
andcommitted
fix CI: rename JSX files to .tsx, fix test pipeline, add tsbuildinfo to gitignore
- Rename og-image.ts and structured-data.ts to .tsx (they contain JSX) - Add prisma generate step to unit test job (fixes @prisma/client not found) - Replace prisma migrate deploy with prisma db push (no migration files exist) - Scope unit tests to unit/ dir and integration tests to integration/ dir - Add *.tsbuildinfo to .gitignore Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent ba7c949 commit cc5cb45

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,10 @@ jobs:
5353
node-version: 22
5454
cache: pnpm
5555
- run: pnpm install --frozen-lockfile
56+
- name: Generate Prisma client
57+
run: pnpm --filter @nextpress/db exec prisma generate
5658
- name: Run unit tests with coverage
57-
run: pnpm --filter @nextpress/core exec vitest run --reporter=verbose --coverage
59+
run: pnpm --filter @nextpress/core exec vitest run --reporter=verbose --coverage --dir src/__tests__/unit
5860
env:
5961
SKIP_DB: "true"
6062
continue-on-error: true
@@ -102,11 +104,10 @@ jobs:
102104
- run: pnpm install --frozen-lockfile
103105
- name: Generate Prisma client
104106
run: pnpm --filter @nextpress/db exec prisma generate
105-
- name: Deploy migrations
106-
run: pnpm --filter @nextpress/db exec prisma migrate deploy
107-
continue-on-error: true
107+
- name: Push schema to test database
108+
run: pnpm --filter @nextpress/db exec prisma db push --skip-generate
108109
- name: Run integration tests
109-
run: pnpm --filter @nextpress/core exec vitest run --reporter=verbose
110+
run: pnpm --filter @nextpress/core exec vitest run --reporter=verbose --dir src/__tests__/integration
110111
continue-on-error: true
111112

112113
# ── Gate ──

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ node_modules/
55
.next/
66
dist/
77
.turbo/
8+
*.tsbuildinfo
89

910
# Environment
1011
.env

0 commit comments

Comments
 (0)