diff --git a/.github/workflows/test-workflows.yml b/.github/workflows/test-workflows.yml index 7802f5d2c..2a26fcf9c 100644 --- a/.github/workflows/test-workflows.yml +++ b/.github/workflows/test-workflows.yml @@ -73,10 +73,11 @@ jobs: shell: bash - name: Run tests - run: n8n/packages/cli/bin/n8n executeBatch --shallow --ids=test-workflows/safeList.txt --shortOutput --concurrency=16 --compare=test-workflows/snapshots + run: n8n/packages/cli/bin/n8n executeBatch --shallow --skipList=test-workflows/skipList.txt --shortOutput --concurrency=16 --compare=test-workflows/snapshots shell: bash env: N8N_ENCRYPTION_KEY: ${{secrets.ENCRYPTION_KEY}} + SKIP_STATISTICS_EVENTS: true # - # name: Export credentials # if: always() diff --git a/packages/cli/src/events/index.ts b/packages/cli/src/events/index.ts index d2d29a753..a73a848f7 100644 --- a/packages/cli/src/events/index.ts +++ b/packages/cli/src/events/index.ts @@ -2,6 +2,8 @@ import { eventEmitter } from 'n8n-core'; import { nodeFetchedData, workflowExecutionCompleted } from './WorkflowStatistics'; export function initEvents() { + if ('SKIP_STATISTICS_EVENTS' in process.env) return; + // Check for undefined as during testing these functions end up undefined for some reason if (nodeFetchedData) { eventEmitter.on(eventEmitter.types.nodeFetchedData, nodeFetchedData);