ci: bump memory to 4gb for node related pipelines

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/6436
GitOrigin-RevId: 4dd6779bdfbbba40e47de88b05be30f62b545d22
This commit is contained in:
Nicolas Beaussart 2022-10-19 23:00:04 +02:00 committed by hasura-bot
parent 5691d95ecf
commit dd493c1781
2 changed files with 9 additions and 8 deletions

View File

@ -2,23 +2,24 @@ export PATH := node_modules/.bin:$(PATH)
DIST_PATH ?= ./static/dist
BUCKET_NAME ?= graphql-engine-cdn.hasura.io
VERSION ?= $(shell ../scripts/get-version.sh)
NODE_OPTIONS=--max-old-space-size=4096
all: deps build gzip-assets gcloud-cp-stable gcloud-set-metadata
deps:
npm install
NODE_OPTIONS=$(NODE_OPTIONS) npm ci
ci-deps:
if [ ! -d "node_modules" ]; then npm ci; fi
if [ ! -d "node_modules" ]; then NODE_OPTIONS=$(NODE_OPTIONS) npm ci; fi
build:
npm run build
NODE_OPTIONS=$(NODE_OPTIONS) npm run build
jest:
npm run jest -- --runInBand
NODE_OPTIONS=$(NODE_OPTIONS) npm run jest -- --runInBand
test:
npm run dev & npm run test
NODE_OPTIONS=$(NODE_OPTIONS) npm run dev & NODE_OPTIONS=$(NODE_OPTIONS) npm run test
gzip-assets:
gzip $(DIST_PATH)/*.js
@ -56,4 +57,4 @@ $(DIST_PATH)/common:
touch $@
node_modules: package.json package-lock.json
npm ci
NODE_OPTIONS=$(NODE_OPTIONS) npm ci

View File

@ -21,9 +21,9 @@
"storybook": "TAILWIND_MODE=watch start-storybook -p 6006 -s static --no-manager-cache",
"build-storybook": "build-storybook -s static",
"--- BUILD ------------------------------------------------": "",
"build": "cross-env NODE_OPTIONS=--max-old-space-size=3072 webpack --progress --mode=production --config webpack/prod.config.js",
"build": "cross-env NODE_OPTIONS=${NODE_OPTIONS} webpack --progress --mode=production --config webpack/prod.config.js",
"--- PRO CONSOLE ------------------------------------------------": "",
"build-lib": "webpack --progress --mode=production --config webpack/bundle.config.js",
"build-lib": "cross-env NODE_OPTIONS=${NODE_OPTIONS} webpack --progress --mode=production --config webpack/bundle.config.js",
"--- TEST ------------------------------------------------": "",
"test": "cypress run --spec 'cypress/integration/**/**/test.ts' --key $CYPRESS_KEY --parallel --record",
"--- CYPRESS ------------------------------------------------": "",