From 9b94e3be9c4eef92216516f5b16dbe30e71480e3 Mon Sep 17 00:00:00 2001 From: czlonkowski <56956555+czlonkowski@users.noreply.github.com> Date: Sat, 4 Oct 2025 09:49:28 +0200 Subject: [PATCH] fix(tests): use N8N_API_URL consistently in CI and local environments The integration tests were using N8N_URL for CI but N8N_API_URL for local development, causing CI failures. Changed CI to use N8N_API_URL to match the GitHub secrets configuration and local .env setup. Fixes: Integration tests failing in CI with 'N8N_URL: MISSING' error --- tests/integration/n8n-api/utils/credentials.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/n8n-api/utils/credentials.ts b/tests/integration/n8n-api/utils/credentials.ts index d348f5d..5bfb9f0 100644 --- a/tests/integration/n8n-api/utils/credentials.ts +++ b/tests/integration/n8n-api/utils/credentials.ts @@ -40,13 +40,13 @@ export interface N8nTestCredentials { export function getN8nCredentials(): N8nTestCredentials { if (process.env.CI) { // CI: Use GitHub secrets - validate required variables first - const url = process.env.N8N_URL; + const url = process.env.N8N_API_URL; const apiKey = process.env.N8N_API_KEY; if (!url || !apiKey) { throw new Error( 'Missing required CI credentials:\n' + - ` N8N_URL: ${url ? 'set' : 'MISSING'}\n` + + ` N8N_API_URL: ${url ? 'set' : 'MISSING'}\n` + ` N8N_API_KEY: ${apiKey ? 'set' : 'MISSING'}\n` + 'Please configure GitHub secrets for integration tests.' );