cancel Failed

Missing CI environment secret

medium#CI-002
workspacestest (node 20)fork_rightmaincommitf3a9c20 — enable email receiptsrocket_launchGitHub Actions-styleschedule48s

Tests fail only in CI. Trace the error from the log into the config loader, and decide where the missing value should actually be wired.

terminaltest (node 20)ci log
09:11:20$ npm test
09:11:22> buglyst-billing@1.8.0 test
09:11:22> vitest run
09:11:25 ❯ test/receipts.test.ts (3 tests | 3 failed)
09:11:25 × sends a receipt email
09:11:25 Error: Missing required environment variable: PAYMENTS_API_KEY
09:11:25 ❯ src/config/env.ts:12 requireEnv('PAYMENTS_API_KEY')
09:11:25 ❯ src/payments/client.ts:4
09:11:26 Test Files 1 failed (1)
09:11:26 Tests 3 failed (3)
09:11:26##[error]Process completed with exit code 1.