From 5930c8d58e5b48a86d7a2f5f46932fb0b36fabd8 Mon Sep 17 00:00:00 2001 From: Martin Porwoll Date: Mon, 15 Dec 2025 12:45:21 +0000 Subject: [PATCH] fix(ci): run Payload migrations before integration tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index caedeb0..f3670c1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: