From 90b057779f72a2b8be1fec9d541271c2ec80a5b3 Mon Sep 17 00:00:00 2001 From: filip mertens Date: Thu, 25 Apr 2024 08:35:28 +0200 Subject: [PATCH] test script --- .circleci/config.yml | 3 ++- apps/remixdesktop/run_ci_test.sh | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 17414526a3..c07146fd72 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -480,6 +480,7 @@ jobs: resource_class: macos.m1.large.gen1 working_directory: ~/remix-project + parallelism: 10 steps: - checkout - attach_workspace: @@ -520,7 +521,7 @@ jobs: command: | nvm use 20 cd apps/remixdesktop - yarn run test:offline && yarn run test && yarn run test:isogit + ./run_ci_test.sh uploadartifacts: docker: diff --git a/apps/remixdesktop/run_ci_test.sh b/apps/remixdesktop/run_ci_test.sh index 92ad0752b2..3020b0daf1 100755 --- a/apps/remixdesktop/run_ci_test.sh +++ b/apps/remixdesktop/run_ci_test.sh @@ -1,12 +1,18 @@ #!/usr/bin/env bash set -e - +TEST_EXITCODE=0 yarn run build:e2e && node ./splice_tests.js TESTFILES=$(node ./splice_tests.js | circleci tests split --split-by=timings) for TESTFILE in $TESTFILES; do yarn run test --test ./build-e2e/remixdesktop/test/tests/app/${TESTFILE} || TEST_EXITCODE=1 done +if [ "$CIRCLE_NODE_INDEX" -eq 0 ]; then + yarn test:isogit +elif [ "$CIRCLE_NODE_INDEX" -eq 1 ]; then + yarn test:offline +fi + echo "$TEST_EXITCODE" if [ "$TEST_EXITCODE" -eq 1 ] then