fix integration tests

This commit is contained in:
root
2026-06-11 02:41:56 -04:00
parent e5bde57613
commit ab3ce8e366
+3 -2
View File
@@ -82,7 +82,6 @@ integration_tests:
NODE_ENV: test NODE_ENV: test
before_script: before_script:
- npm ci - npm ci
- npm run db:generate
# Overwrite the local .env.test so vitest integration config gets CI service hostnames # Overwrite the local .env.test so vitest integration config gets CI service hostnames
# (the file uses postgres/redis aliases, not localhost) # (the file uses postgres/redis aliases, not localhost)
- | - |
@@ -94,8 +93,10 @@ integration_tests:
NODE_ENV=test NODE_ENV=test
FILE_STORAGE_ROOT=/tmp/rentaldrivego-test-storage FILE_STORAGE_ROOT=/tmp/rentaldrivego-test-storage
EOF EOF
- npm run db:deploy
script: script:
- npm run db:generate
- npm run db:deploy
- npx prisma db push --schema packages/database/prisma/schema.prisma
- npm run test:api:integration - npm run test:api:integration
rules: rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"' - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'