Skip to content

Commit

Permalink
Tools: Fixed out of memory error on CI (laurent22#5550)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent22 committed Oct 10, 2021
1 parent 53a80f3 commit 0eb79ba
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/scripts/run_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ npm install
if [ "$IS_PULL_REQUEST" == "1" ] || [ "$IS_DEV_BRANCH" = "1" ]; then
echo "Step: Running tests..."

# Need this because we're getting this error:
#
# @joplin/lib: FATAL ERROR: Ineffective mark-compacts near heap limit
# Allocation failed - JavaScript heap out of memory
#
# https://stackoverflow.com/questions/38558989
export NODE_OPTIONS="--max-old-space-size=4096"
npm run test-ci
testResult=$?
if [ $testResult -ne 0 ]; then
Expand Down

0 comments on commit 0eb79ba

Please sign in to comment.