Maybe unrelated to prisma itself, but it’s related...
# orm-help
m
Maybe unrelated to prisma itself, but it’s related to database and I’m using prisma. And someone might be able to help. I’m setting up for CI/CD for our frontend project(using github actions). And I need to run the tests(cypress) on each PR to block merge if they fail. How do you guys create an instance of the backend and database for that? • Do you create a new Backend/Database instance from scrach for every PR? • Do you use an existing
dev
backend/database but reset all the data? • Do you use an existing
dev
backend/database but don’t reset all the data and have the tests work around other data on the dev environment?
n
Hey Matheus 👋 I guess the cleanest solution would be your first suggestion of creating a new DB instance for each PR, since a PR might come with schema changes. That being said, we are going to solve exactly this problem with the Prisma Data Platform eventually 🙂 See the feature concept here:

https://www.youtube.com/watch?v=oojjJh-51ZI&ab_channel=Prisma

m
Awesome. Thank you!