diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d0dd593..a44fe95 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -82,7 +82,6 @@ integration_tests: NODE_ENV: test before_script: - npm ci - - npm run db:generate # Overwrite the local .env.test so vitest integration config gets CI service hostnames # (the file uses postgres/redis aliases, not localhost) - | @@ -94,8 +93,10 @@ integration_tests: NODE_ENV=test FILE_STORAGE_ROOT=/tmp/rentaldrivego-test-storage EOF - - npm run db:deploy script: + - npm run db:generate + - npm run db:deploy + - npx prisma db push --schema packages/database/prisma/schema.prisma - npm run test:api:integration rules: - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'