Merge pull request #5 from complexcaresolutions/develop

fix(ci): add timeout and CI env var to migrate:fresh
This commit is contained in:
c2s 2025-12-16 16:00:41 +01:00 committed by GitHub
commit 71471d7423
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -127,8 +127,12 @@ jobs:
IP_ANONYMIZATION_PEPPER: ci-anonymization-pepper-placeholder IP_ANONYMIZATION_PEPPER: ci-anonymization-pepper-placeholder
- name: Setup Database Schema - name: Setup Database Schema
run: pnpm payload migrate:fresh --force run: |
echo "Running migrate:fresh..."
npx payload migrate:fresh --force
timeout-minutes: 5
env: env:
CI: true
PAYLOAD_SECRET: test-payload-secret PAYLOAD_SECRET: test-payload-secret
DATABASE_URI: postgresql://payload:payload_test_password@localhost:5432/payload_test DATABASE_URI: postgresql://payload:payload_test_password@localhost:5432/payload_test
NEXT_PUBLIC_SERVER_URL: https://test.example.com NEXT_PUBLIC_SERVER_URL: https://test.example.com
@ -259,8 +263,12 @@ jobs:
run: pnpm exec playwright install chromium --with-deps run: pnpm exec playwright install chromium --with-deps
- name: Setup Database Schema - name: Setup Database Schema
run: pnpm payload migrate:fresh --force run: |
echo "Running migrate:fresh..."
npx payload migrate:fresh --force
timeout-minutes: 5
env: env:
CI: true
PAYLOAD_SECRET: e2e-secret-placeholder PAYLOAD_SECRET: e2e-secret-placeholder
DATABASE_URI: postgresql://payload:payload_test_password@localhost:5432/payload_test DATABASE_URI: postgresql://payload:payload_test_password@localhost:5432/payload_test
NEXT_PUBLIC_SERVER_URL: http://localhost:3001 NEXT_PUBLIC_SERVER_URL: http://localhost:3001