diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml index 36b0cd4..aa98e7c 100644 --- a/.github/workflows/e2e-tests.yml +++ b/.github/workflows/e2e-tests.yml @@ -44,6 +44,8 @@ jobs: run: npx playwright install --with-deps - name: Start dev server run: npm run dev > /dev/null 2>&1 & + - name: Make sure there are no pending migrations + run: npx prisma migrate diff --from-migrations ./prisma/migrations --to-schema-datamodel ./prisma/schema --exit-code --shadow-database-url=${{ env.DATABASE_URL }} - name: Wait for dev server to be ready run: timeout 60s sh -c 'until curl http://localhost:3000 -I; do echo "Waiting for dev server to be running..."; sleep 2; done' - name: Run Playwright tests diff --git a/prisma/migrations/migration_lock.toml b/prisma/migrations/migration_lock.toml new file mode 100644 index 0000000..fbffa92 --- /dev/null +++ b/prisma/migrations/migration_lock.toml @@ -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" \ No newline at end of file