Skip to content

Forgot password

Forgot password #127

name: Check Database Migrations
on:
pull_request:
jobs:
check-migrations:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:15
env:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: shadow_db
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: ./.github/actions/setup-bun
- name: Check migrations
run: |
bun prisma migrate diff \
--exit-code \
--from-migrations ./packages/db/prisma/migrations \
--to-schema-datamodel ./packages/db/prisma/schema.prisma \
--shadow-database-url postgres://user:password@localhost:5432/shadow_db