diff --git a/docker-compose.test.yml b/docker-compose.test.yml index 8d07db6a6..47ea63cf7 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -68,8 +68,8 @@ services: - "3000:3000" command: > sh -c " - npm install - npx nx run db:push && + npm install && + npx nx run db:deploy && npx nx run backend-e2e:e2e " frontend-e2e: diff --git a/libs/db/project.json b/libs/db/project.json index 1027a5350..5404719a9 100644 --- a/libs/db/project.json +++ b/libs/db/project.json @@ -32,6 +32,13 @@ "cwd": "libs/db/src" } }, + "deploy": { + "executor": "nx:run-commands", + "options": { + "command": "prisma migrate deploy", + "cwd": "libs/db/src" + } + }, "create-migration": { "executor": "nx:run-commands", "options": {