fix(ci): add missing env vars for unit and integration tests

Add DATABASE_URI, CONSENT_LOGGING_API_KEY, and IP_ANONYMIZATION_PEPPER
environment variables to test steps to prevent validation errors.

🤖 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:38:44 +00:00
parent 00167756f5
commit aedc1ad9e4

View file

@ -108,6 +108,9 @@ jobs:
PAYLOAD_PUBLIC_SERVER_URL: https://test.example.com PAYLOAD_PUBLIC_SERVER_URL: https://test.example.com
NEXT_PUBLIC_SERVER_URL: https://test.example.com NEXT_PUBLIC_SERVER_URL: https://test.example.com
EMAIL_DELIVERY_DISABLED: 'true' EMAIL_DELIVERY_DISABLED: 'true'
DATABASE_URI: postgresql://placeholder:placeholder@localhost:5432/placeholder
CONSENT_LOGGING_API_KEY: ci-consent-api-key-placeholder
IP_ANONYMIZATION_PEPPER: ci-anonymization-pepper-placeholder
- name: Run Integration Tests - name: Run Integration Tests
run: pnpm test:int run: pnpm test:int
@ -117,6 +120,9 @@ jobs:
PAYLOAD_PUBLIC_SERVER_URL: https://test.example.com PAYLOAD_PUBLIC_SERVER_URL: https://test.example.com
NEXT_PUBLIC_SERVER_URL: https://test.example.com NEXT_PUBLIC_SERVER_URL: https://test.example.com
EMAIL_DELIVERY_DISABLED: 'true' EMAIL_DELIVERY_DISABLED: 'true'
DATABASE_URI: postgresql://placeholder:placeholder@localhost:5432/placeholder
CONSENT_LOGGING_API_KEY: ci-consent-api-key-placeholder
IP_ANONYMIZATION_PEPPER: ci-anonymization-pepper-placeholder
- name: Upload coverage report - name: Upload coverage report
if: always() if: always()