Skip to content

Commit

Permalink
fix(node): set memory to 8 GiB for tests (freeCodeCamp#55193)
Browse files Browse the repository at this point in the history
  • Loading branch information
raisedadead authored Jun 14, 2024
1 parent 328807a commit 1a51bb0
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/curriculum-i18n.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
name: CI - Node.js - i18n
env:
NODE_OPTIONS: '--max_old_space_size=6144'

on:
# Run on push events, but only for the below branches
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/node.js-tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
name: CI - Node.js
env:
NODE_OPTIONS: '--max_old_space_size=6144'

on:
# Run on push events, but only for the below branches
Expand Down
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"create:env": "cross-env DEBUG=fcc:* ts-node ./tools/create-env.ts",
"create:trending": "ts-node ./tools/download-trending.ts",
"predevelop": "pnpm run common-setup && pnpm run build:scripts --env development",
"develop": "cross-env NODE_OPTIONS=\"--max-old-space-size=5000\" gatsby develop --inspect=9230",
"develop": "cross-env NODE_OPTIONS=\"--max-old-space-size=7168\" gatsby develop --inspect=9230",
"lint": "ts-node ./i18n/schema-validation.ts",
"serve": "gatsby serve -p 8000",
"serve-ci": "serve -l 8000 -c serve.json public",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"start": "npm-run-all create:shared -p develop:server serve:client",
"start-ci": "npm-run-all create:shared -p start:server serve:client-ci",
"start:server": "pm2 start api-server/ecosystem.config.js",
"test": "run-s create:shared build:curriculum build-workers test:*",
"test": "NODE_OPTIONS='--max-old-space-size=7168' run-s create:shared build:curriculum build-workers test:*",
"test:source": "jest",
"test:api": "cd api && jest --force-exit",
"test:curriculum": "cd ./curriculum && pnpm test",
Expand Down

0 comments on commit 1a51bb0

Please sign in to comment.