From 0fd2c5e10668497da760c2a6cac64346b04bf6e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Tue, 23 Jul 2024 12:17:29 +0200 Subject: [PATCH] ci: Lint and Test @n8n/config on the CI as well (no-changelog) (#10156) --- packages/@n8n/config/test/config.test.ts | 28 +++++++++++++++++++++++- turbo.json | 2 ++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/packages/@n8n/config/test/config.test.ts b/packages/@n8n/config/test/config.test.ts index e0c41af64e..491906b675 100644 --- a/packages/@n8n/config/test/config.test.ts +++ b/packages/@n8n/config/test/config.test.ts @@ -56,7 +56,6 @@ describe('GlobalConfig', () => { tablePrefix: '', type: 'sqlite', }, - credentials: { defaultName: 'My credentials', overwrite: { @@ -88,6 +87,33 @@ describe('GlobalConfig', () => { }, }, }, + eventBus: { + checkUnsentInterval: 0, + crashRecoveryMode: 'extensive', + logWriter: { + keepLogCount: 3, + logBaseName: 'n8nEventLog', + maxFileSizeInKB: 10240, + }, + }, + externalSecrets: { + preferGet: false, + updateInterval: 300, + }, + publicApi: { + disabled: false, + path: 'api', + swaggerUiDisabled: false, + }, + templates: { + enabled: true, + host: 'https://api.n8n.io/api/', + }, + versionNotifications: { + enabled: true, + endpoint: 'https://api.n8n.io/api/versions/', + infoUrl: 'https://docs.n8n.io/hosting/installation/updating/', + }, }; it('should use all default values when no env variables are defined', () => { diff --git a/turbo.json b/turbo.json index ec9ee58c68..0da2b6e54d 100644 --- a/turbo.json +++ b/turbo.json @@ -24,6 +24,7 @@ "format": {}, "lint:backend": { "dependsOn": [ + "@n8n/config#lint", "@n8n/client-oauth2#lint", "@n8n/imap#lint", "@n8n/permissions#lint", @@ -50,6 +51,7 @@ "lintfix": {}, "test:backend": { "dependsOn": [ + "@n8n/config#test", "@n8n/client-oauth2#test", "@n8n/imap#test", "@n8n/permissions#test",