fix(node): set memory to 8 GiB for tests (#55193)

This commit is contained in:
Mrugesh Mohapatra
2024-06-14 20:02:09 +05:30
committed by GitHub
parent 328807afd1
commit 1a51bb072a
4 changed files with 2 additions and 6 deletions
-2
View File
@@ -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
-2
View File
@@ -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
+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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",