Skip to content

Commit d079ab8

Browse files
test(NODE-7137): add n8n to the AI testing pipeline (#95)
1 parent 9c1cfd5 commit d079ab8

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

.evergreen/config.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,12 @@ tasks:
287287
params:
288288
file: src/langchain-js/langchainjs/libs/langchain-mongodb/results.xml
289289

290+
- name: test-n8n-js-local
291+
tags: [local]
292+
commands:
293+
- func: "fetch repo"
294+
- func: "execute tests"
295+
290296
- name: test-langchain-js-remote
291297
tags: [remote]
292298
commands:
@@ -477,6 +483,16 @@ buildvariants:
477483
- name: test-langchain-js-local
478484
- name: test-langchain-js-remote
479485

486+
- name: test-n8n-javascript-ubuntu
487+
display_name: n8n Ubuntu2204
488+
tags: [javascript]
489+
expansions:
490+
DIR: n8n-js
491+
run_on:
492+
- ubuntu2204-small
493+
tasks:
494+
- name: test-n8n-js-local
495+
480496
- name: test-mem0-python-rhel
481497
display_name: mem0 RHEL Python
482498
tags: [python]

n8n-js/config.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
REPO_NAME=n8n
2+
REPO_ORG=n8n-io

n8n-js/run.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#! /bin/bash
2+
3+
set -o errexit
4+
set -o xtrace
5+
6+
mkdir npm_global_dir
7+
WORKING_DIR=$(pwd)
8+
export NPM_CONFIG_PREFIX=$WORKING_DIR/npm_global_dir
9+
export PATH="$NPM_CONFIG_PREFIX/bin:$PATH"
10+
11+
npm i -g pnpm
12+
13+
# use node20
14+
export PATH="/opt/devtools/node22/bin:/opt/dev/tools/bin:$PATH"
15+
16+
pnpm --version
17+
18+
pnpm install
19+
pnpm build
20+
21+
# first, run the crud node tests
22+
cd packages/nodes-base/nodes/MongoDb
23+
pnpm test "$(pwd)"
24+
cd -
25+
26+
# then, run the vector store tests
27+
cd packages/@n8n/nodes-langchain/nodes/vector_store/VectorStoreMongoDBAtlas/
28+
pnpm test "$(pwd)"
29+
cd -

0 commit comments

Comments
 (0)