Skip to content

Commit

Permalink
ci: add parallelism
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed Sep 23, 2023
1 parent f931050 commit 1e5587b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .circleci/setupAndTestWithAuthReact.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ cd ../../../supertokens-auth-react/
# flag will not be checked because Auth0 is used as a provider so that the Thirdparty tests can run reliably.
# In versions lower than 0.18 Github is used as the provider.

export CIRCLE_NODE_TOTAL;
export CIRCLE_NODE_INDEX;
SKIP_OAUTH=true npm run test-with-non-node
if [[ $? -ne 0 ]]
then
Expand Down
2 changes: 1 addition & 1 deletion .circleci/setupAndTestWithFreeCore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ echo $SUPERTOKENS_API_KEY > apiPassword
cd ../project/

if ! [[ -z "${CIRCLE_NODE_TOTAL}" ]]; then
TEST_MODE=testing SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root npx mocha --no-config --require isomorphic-fetch --timeout 500000 $(npx mocha-split-tests -r ./runtime.log -t $CIRCLE_NODE_TOTAL -g $CIRCLE_NODE_INDEX -f 'test/**/*.test.js')
TEST_MODE=testing SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root npx mocha --no-config --timeout 500000 $(npx mocha-split-tests -r ./runtime.log -t $CIRCLE_NODE_TOTAL -g $CIRCLE_NODE_INDEX -f 'test/**/*.test.js')
else
TEST_MODE=testing SUPERTOKENS_CORE_TAG=$coreTag NODE_PORT=8081 INSTALL_PATH=../supertokens-root npm test
fi

0 comments on commit 1e5587b

Please sign in to comment.