fix integration tests
This commit is contained in:
+3
-2
@@ -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"'
|
||||||
|
|||||||
Reference in New Issue
Block a user