Skip to content

Commit

Permalink
Add migrations check in CI (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
aberonni authored Sep 2, 2024
1 parent 59087ae commit fba28df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
- name: Seed Database
run: |
npx prisma db push
# Make sure there are no pending migrations
npx prisma migrate diff --from-migrations ./prisma/migrations --to-schema-datamodel ./prisma/schema --exit-code --shadow-database-url=${{ env.DATABASE_URL }}
npx prisma db seed
- name: Install Playwright Browsers
run: npx playwright install --with-deps
Expand Down
3 changes: 3 additions & 0 deletions prisma/migrations/migration_lock.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Please do not edit this file manually
# It should be added in your version-control system (i.e. Git)
provider = "postgresql"

0 comments on commit fba28df

Please sign in to comment.