From 271f96a43d3850ef1261097478fb1e3313bb3995 Mon Sep 17 00:00:00 2001 From: Martin Porwoll Date: Tue, 16 Dec 2025 15:00:13 +0000 Subject: [PATCH] fix(ci): add timeout and CI env var to migrate:fresh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add 5 minute timeout to prevent hanging migrations - Set CI=true environment variable - Use npx directly instead of pnpm wrapper - Add echo for debugging 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .github/workflows/ci.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f6c1722..7439a12 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -127,8 +127,12 @@ jobs: IP_ANONYMIZATION_PEPPER: ci-anonymization-pepper-placeholder - name: Setup Database Schema - run: pnpm payload migrate:fresh --force + run: | + echo "Running migrate:fresh..." + npx payload migrate:fresh --force + timeout-minutes: 5 env: + CI: true PAYLOAD_SECRET: test-payload-secret DATABASE_URI: postgresql://payload:payload_test_password@localhost:5432/payload_test NEXT_PUBLIC_SERVER_URL: https://test.example.com @@ -259,8 +263,12 @@ jobs: run: pnpm exec playwright install chromium --with-deps - name: Setup Database Schema - run: pnpm payload migrate:fresh --force + run: | + echo "Running migrate:fresh..." + npx payload migrate:fresh --force + timeout-minutes: 5 env: + CI: true PAYLOAD_SECRET: e2e-secret-placeholder DATABASE_URI: postgresql://payload:payload_test_password@localhost:5432/payload_test NEXT_PUBLIC_SERVER_URL: http://localhost:3001