Skip to content

Commit 7c875fd

Browse files
should pass
1 parent 658e023 commit 7c875fd

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

n8n-js/run.sh

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
#! /bin/bash
22

3-
echo "running!"
3+
set -o errexit
4+
set -o xtrace
45

5-
ls
6+
mkdir npm_global_dir
7+
export NPM_CONFIG_PREFIX=$(pwd)/npm_global_dir
8+
export PATH="$NPM_CONFIG_PREFIX/bin:$PATH"
9+
10+
npm i -g pnpm
11+
12+
# use node20
13+
export PATH="/opt/devtools/node22/bin:/opt/dev/tools/bin:$PATH"
14+
15+
pnpm --version
16+
17+
pnpm install
18+
pnpm build
19+
20+
# first, run the crud node tests
21+
cd packages/nodes-base/nodes/MongoDb
22+
pnpm test $(pwd)
23+
cd -
24+
25+
# then, run the vector store tests
26+
cd packages/@n8n/nodes-langchain/nodes/vector_store/VectorStoreMongoDBAtlas/
27+
pnpm test $(pwd)
28+
cd -

0 commit comments

Comments
 (0)