test script

pull/4837/head
filip mertens 7 months ago
parent a5b684d4e9
commit 90b057779f
  1. 3
      .circleci/config.yml
  2. 8
      apps/remixdesktop/run_ci_test.sh

@ -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:

@ -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

Loading…
Cancel
Save