Skip to content

Commit 3e6aeae

Browse files
committed
fix: run prisma generate before build:packages in typecheck, test, and build jobs
- TypeScript compilation fails without Prisma client generated - db:generate must run before any tsc/typecheck step that imports @prisma/client
1 parent e855461 commit 3e6aeae

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ jobs:
4040
node-version: 20
4141
cache: 'pnpm'
4242
- run: pnpm install --frozen-lockfile
43+
- run: pnpm db:generate
44+
env:
45+
DATABASE_URL: postgresql://veridion:veridion@localhost:5432/veridion_test
4346
- run: pnpm build:packages
4447
- run: pnpm typecheck
4548

@@ -70,10 +73,10 @@ jobs:
7073
node-version: 20
7174
cache: 'pnpm'
7275
- run: pnpm install --frozen-lockfile
73-
- run: pnpm build:packages
7476
- run: pnpm db:generate
7577
env:
7678
DATABASE_URL: postgresql://veridion:veridion@localhost:5432/veridion_test
79+
- run: pnpm build:packages
7780
- run: pnpm test
7881
env:
7982
DATABASE_URL: postgresql://veridion:veridion@localhost:5432/veridion_test
@@ -91,4 +94,7 @@ jobs:
9194
node-version: 20
9295
cache: 'pnpm'
9396
- run: pnpm install --frozen-lockfile
97+
- run: pnpm db:generate
98+
env:
99+
DATABASE_URL: postgresql://veridion:veridion@localhost:5432/veridion_test
94100
- run: pnpm build

0 commit comments

Comments
 (0)