fix(ci): run Payload migrations before integration tests

Integration tests require database schema to be created.
Added pnpm payload migrate step before running integration tests.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Martin Porwoll 2025-12-15 12:45:21 +00:00
parent c244b4ea62
commit 5930c8d58e

View file

@ -126,6 +126,16 @@ jobs:
CONSENT_LOGGING_API_KEY: ci-consent-api-key-placeholder
IP_ANONYMIZATION_PEPPER: ci-anonymization-pepper-placeholder
- name: Run Payload Migrations
run: pnpm payload migrate
env:
PAYLOAD_SECRET: test-payload-secret
DATABASE_URI: postgresql://payload:payload_test_password@localhost:5432/payload_test
NEXT_PUBLIC_SERVER_URL: https://test.example.com
PAYLOAD_PUBLIC_SERVER_URL: https://test.example.com
CONSENT_LOGGING_API_KEY: ci-consent-api-key-placeholder
IP_ANONYMIZATION_PEPPER: ci-anonymization-pepper-placeholder
- name: Run Integration Tests
run: pnpm test:int
env: