mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-26 03:52:23 -08:00
test: Change workflows to test from safe list to skip list (#5457)
* Remove check by safe list to skip list * add an option to skip using statistics events --------- Co-authored-by: कारतोफ्फेलस्क्रिप्ट™ <aditya@netroy.in>
This commit is contained in:
parent
21e9af09a7
commit
309c995364
3
.github/workflows/test-workflows.yml
vendored
3
.github/workflows/test-workflows.yml
vendored
|
@ -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()
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue