fix(ci): rewrite workflow to target frontend and backend workspaces s… #3
ci.yml
on: push
Frontend — Lint & Build
1m 5s
Backend — Lint & Test
46s
Annotations
11 errors and 2 warnings
|
tests/integration/payments.test.js > Payment Lifecycle — Integration > Webhook delivery > calls sendWebhook with null url when no webhook_url is set:
backend/tests/integration/payments.test.js#L803
AssertionError: expected 500 to be 200 // Object.is equality
- Expected
+ Received
- 200
+ 500
❯ tests/integration/payments.test.js:803:26
|
|
tests/integration/payments.test.js > Payment Lifecycle — Integration > Webhook delivery > calls sendWebhook with the correct payload on payment confirmation:
backend/tests/integration/payments.test.js#L766
AssertionError: expected "spy" to be called 1 times, but got 0 times
❯ tests/integration/payments.test.js:766:31
|
|
tests/integration/payments.test.js > Payment Lifecycle — Integration > POST /api/verify-payment/:id > confirms a payment when a matching Stellar transaction is found:
backend/tests/integration/payments.test.js#L652
AssertionError: expected 500 to be 200 // Object.is equality
- Expected
+ Received
- 200
+ 500
❯ tests/integration/payments.test.js:652:26
|
|
tests/integration/health.test.js:
backend/src/services/paymentService.js#L7
SyntaxError: Identifier 'resend' has already been declared
❯ src/services/paymentService.js:7:31
|
|
tests/integration/auth.test.js:
backend/src/services/paymentService.js#L7
SyntaxError: Identifier 'resend' has already been declared
❯ src/services/paymentService.js:7:31
|
|
src/routes/payments-security.test.js:
backend/src/services/paymentService.js#L7
SyntaxError: Identifier 'resend' has already been declared
❯ src/services/paymentService.js:7:31
|
|
src/routes/payments-path-quote.test.js:
backend/src/services/paymentService.js#L7
SyntaxError: Identifier 'resend' has already been declared
❯ src/services/paymentService.js:7:31
|
|
src/lib/rls.test.js > RLS — cross-merchant data isolation:
backend/src/lib/rls.test.js#L73
{
stack: 'AggregateError: \n' +
' at /home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/pg-pool/index.js:45:11\n' +
' at processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
' at /home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/src/lib/rls.test.js:73:5\n' +
' at callSuiteHook (file:///home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/@vitest/runner/dist/index.js:964:22)\n' +
' at runSuite (file:///home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/@vitest/runner/dist/index.js:1214:7)\n' +
' at runSuite (file:///home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/@vitest/runner/dist/index.js:1205:15)\n' +
' at runFiles (file:///home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/@vitest/runner/dist/index.js:1262:5)\n' +
' at startTests (file:///home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/@vitest/runner/dist/index.js:1271:3)\n' +
' at file:///home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/vitest/dist/chunks/runBaseTests.3qpJUEJM.js:126:11\n' +
' at withEnv (file:///home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/vitest/dist/chunks/runBaseTests.3qpJUEJM.js:90:5)',
errors: [
{
stack: 'Error: connect ECONNREFUSED ::1:5432\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at afterConnectMultiple (node:net:1682:16)',
message: 'connect ECONNREFUSED ::1:5432',
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 5432,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
},
{
stack: 'Error: connect ECONNREFUSED 127.0.0.1:5432\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at afterConnectMultiple (node:net:1682:16)',
message: 'connect ECONNREFUSED 127.0.0.1:5432',
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 5432,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
}
],
code: 'ECONNREFUSED',
stackStr: 'AggregateError: \n' +
' at /home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/pg-pool/index.js:45:11\n' +
' at processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
' at /home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/src/lib/rls.test.js:73:5\n' +
' at callSuiteHook (file:///home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/@vitest/runner/dist/index.js:964:22)\n' +
' at runSuite (file:///home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/@vitest/runner/dist/index.js:1214:7)\n' +
' at runSuite (file:///home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/@vitest/runner/dist/index.js:1205:15)\n' +
' at runFiles (file:///home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/@vitest/runner/dist/index.js:1262:5)\n' +
' at startTests (file:///home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/@vitest/runner/dist/index.js:1271:3)\n' +
' at file:///home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/vitest/dist/chunks/runBaseTests.3qpJUEJM.js:126:11\n' +
' at withEnv (file:///home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/vitest/dist/chunks/runBaseTests.3qpJUEJM.js:90:5)',
nameStr: 'AggregateError',
expected: 'undefined',
actual: 'undefined',
message: '',
constructor: 'Function<AggregateError>',
name: 'AggregateError',
toString: 'Function<toString>',
stacks: [
{
method: '',
file: '/home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/nod
|
|
src/lib/rls.test.js > RLS — cross-merchant data isolation:
backend/src/lib/rls.test.js#L48
{
stack: 'AggregateError: \n' +
' at /home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/pg-pool/index.js:45:11\n' +
' at processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
' at /home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/src/lib/rls.test.js:48:5\n' +
' at callSuiteHook (file:///home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/@vitest/runner/dist/index.js:964:22)\n' +
' at runSuite (file:///home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/@vitest/runner/dist/index.js:1175:29)\n' +
' at runSuite (file:///home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/@vitest/runner/dist/index.js:1205:15)\n' +
' at runFiles (file:///home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/@vitest/runner/dist/index.js:1262:5)\n' +
' at startTests (file:///home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/@vitest/runner/dist/index.js:1271:3)\n' +
' at file:///home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/vitest/dist/chunks/runBaseTests.3qpJUEJM.js:126:11\n' +
' at withEnv (file:///home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/vitest/dist/chunks/runBaseTests.3qpJUEJM.js:90:5)',
errors: [
{
stack: 'Error: connect ECONNREFUSED ::1:5432\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at afterConnectMultiple (node:net:1682:16)',
message: 'connect ECONNREFUSED ::1:5432',
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '::1',
port: 5432,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
},
{
stack: 'Error: connect ECONNREFUSED 127.0.0.1:5432\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at afterConnectMultiple (node:net:1682:16)',
message: 'connect ECONNREFUSED 127.0.0.1:5432',
errno: -111,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 5432,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
}
],
code: 'ECONNREFUSED',
stackStr: 'AggregateError: \n' +
' at /home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/pg-pool/index.js:45:11\n' +
' at processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
' at /home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/src/lib/rls.test.js:48:5\n' +
' at callSuiteHook (file:///home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/@vitest/runner/dist/index.js:964:22)\n' +
' at runSuite (file:///home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/@vitest/runner/dist/index.js:1175:29)\n' +
' at runSuite (file:///home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/@vitest/runner/dist/index.js:1205:15)\n' +
' at runFiles (file:///home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/@vitest/runner/dist/index.js:1262:5)\n' +
' at startTests (file:///home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/@vitest/runner/dist/index.js:1271:3)\n' +
' at file:///home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/vitest/dist/chunks/runBaseTests.3qpJUEJM.js:126:11\n' +
' at withEnv (file:///home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/node_modules/vitest/dist/chunks/runBaseTests.3qpJUEJM.js:90:5)',
nameStr: 'AggregateError',
expected: 'undefined',
actual: 'undefined',
message: '',
constructor: 'Function<AggregateError>',
name: 'AggregateError',
toString: 'Function<toString>',
stacks: [
{
method: '',
file: '/home/runner/work/Stellar_Payment_API/Stellar_Payment_API/backend/n
|
|
src/lib/email.test.js:
backend/src/lib/email.test.js#L11
SyntaxError: Identifier 'resend' has already been declared
❯ src/lib/email.test.js:11:25
|
|
Frontend — Lint & Build
Process completed with exit code 1.
|
|
Backend — Lint & Test
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Frontend — Lint & Build
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/checkout@v4, actions/setup-node@v4, pnpm/action-setup@v3. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|