Skip to content

Commit 96e5245

Browse files
ci(workflows/deploy): seed db before health check
This patch ensures that the local Postgres database is seeded with the current Prisma schema before the `start-server-and-test` script tries to `GET /` which will cause a Prisma read that will fail if the database is not setup. Reverts: 63e152d ("ci(workflows/deploy): remove redundant prisma setup")
1 parent 4c235b8 commit 96e5245

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ jobs:
124124
# the sleep is just there to give time for postgres to get started
125125
run: docker-compose --env-file .env up -d && sleep 3
126126

127+
- name: Setup database
128+
run: pnpm prisma migrate reset --force --skip-seed
129+
127130
- name: Build
128131
run: pnpm build
129132

0 commit comments

Comments
 (0)