mirror of
https://github.com/complexcaresolutions/cms.c2sgmbh.git
synced 2026-03-17 22:04:10 +00:00
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:
parent
c244b4ea62
commit
5930c8d58e
1 changed files with 10 additions and 0 deletions
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue