mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(node): set memory to 8 GiB for tests (#55193)
This commit is contained in:
committed by
GitHub
parent
328807afd1
commit
1a51bb072a
@@ -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
|
||||
|
||||
@@ -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
@@ -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
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user