mirror of
https://github.com/complexcaresolutions/cms.c2sgmbh.git
synced 2026-03-17 19:44:12 +00:00
fix(ci): use pnpm exec for migrate command
- Switch from npx to pnpm exec for better env var handling - Add NODE_OPTIONS: --no-deprecation 🤖 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
271f96a43d
commit
9bda6ae555
1 changed files with 4 additions and 2 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
|
@ -129,10 +129,11 @@ jobs:
|
||||||
- name: Setup Database Schema
|
- name: Setup Database Schema
|
||||||
run: |
|
run: |
|
||||||
echo "Running migrate:fresh..."
|
echo "Running migrate:fresh..."
|
||||||
npx payload migrate:fresh --force
|
pnpm exec payload migrate:fresh --force
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
|
NODE_OPTIONS: --no-deprecation
|
||||||
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
|
||||||
|
|
@ -265,10 +266,11 @@ jobs:
|
||||||
- name: Setup Database Schema
|
- name: Setup Database Schema
|
||||||
run: |
|
run: |
|
||||||
echo "Running migrate:fresh..."
|
echo "Running migrate:fresh..."
|
||||||
npx payload migrate:fresh --force
|
pnpm exec payload migrate:fresh --force
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
|
NODE_OPTIONS: --no-deprecation
|
||||||
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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue