diff --git a/.github/workflows/budibase_ci.yml b/.github/workflows/budibase_ci.yml index 3d166dc262..b72d6793af 100644 --- a/.github/workflows/budibase_ci.yml +++ b/.github/workflows/budibase_ci.yml @@ -93,7 +93,7 @@ jobs: runs-on: ubuntu-latest env: REUSE_CONTAINERS: true - CONTAINER_NAMESPACE: test-server + CONTAINER_NAMESPACE: test-libraries steps: - name: Checkout repo uses: actions/checkout@v4 diff --git a/packages/server/scripts/test.sh b/packages/server/scripts/test.sh index 3ecf8bb794..3100d1911f 100644 --- a/packages/server/scripts/test.sh +++ b/packages/server/scripts/test.sh @@ -1,14 +1,13 @@ #!/bin/bash set -e +export NODE_OPTIONS="--no-node-snapshot $NODE_OPTIONS" + if [[ -n $CI ]] then - export NODE_OPTIONS="--max-old-space-size=4096 --no-node-snapshot $NODE_OPTIONS" - echo "jest --coverage --maxWorkers=2 --forceExit --workerIdleMemoryLimit=2000MB --bail $@" - jest --coverage --maxWorkers=2 --forceExit --workerIdleMemoryLimit=2000MB --bail $@ + echo "jest --coverage --maxWorkers=4 --forceExit --bail $@" + jest --coverage --maxWorkers=2 --forceExit --bail $@ else - # --maxWorkers performs better in development - export NODE_OPTIONS="--no-node-snapshot $NODE_OPTIONS" echo "jest --coverage --maxWorkers=2 --forceExit $@" jest --coverage --maxWorkers=2 --forceExit $@ fi \ No newline at end of file