Attempt different commands
This commit is contained in:
parent
c2a5a37c48
commit
0f75660808
|
@ -110,12 +110,8 @@ jobs:
|
|||
node-version: 18.x
|
||||
cache: "yarn"
|
||||
- run: yarn
|
||||
- name: Test worker
|
||||
run: yarn test --scope=@budibase/worker
|
||||
- name: Test server
|
||||
env:
|
||||
NODE_OPTIONS: "--max_old_space_size=4096"
|
||||
run: yarn test --scope=@budibase/server
|
||||
- name: Test worker and server
|
||||
run: yarn test --concurrency=1 --scope=@budibase/worker --scope=@budibase/server
|
||||
- uses: codecov/codecov-action@v3
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN || github.token }} # not required for public repos
|
||||
|
|
|
@ -5,8 +5,9 @@ if [[ -n $CI ]]
|
|||
then
|
||||
# --runInBand performs better in ci where resources are limited
|
||||
export NODE_OPTIONS="--max-old-space-size=4096"
|
||||
echo "jest --coverage --runInBand --forceExit"
|
||||
jest --coverage --runInBand --forceExit
|
||||
node ../../node_modules/jest/bin/jest.js --version
|
||||
echo "node --expose-gc --no-compilation-cache ../../node_modules/jest/bin/jest.js"
|
||||
node --expose-gc --no-compilation-cache ../../node_modules/jest/bin/jest.js
|
||||
else
|
||||
# --maxWorkers performs better in development
|
||||
echo "jest --coverage --maxWorkers=2 --forceExit"
|
||||
|
|
Loading…
Reference in New Issue