From 97b0608f2e042b6a4f16dc0e5c34a3f9ca505e5e Mon Sep 17 00:00:00 2001 From: sebastien Date: Thu, 17 Oct 2024 20:54:30 +0200 Subject: [PATCH] add max memory for Docusaurus site build CI --- .github/workflows/tests-e2e.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests-e2e.yml b/.github/workflows/tests-e2e.yml index 3e887ec35b54..98248749567f 100644 --- a/.github/workflows/tests-e2e.yml +++ b/.github/workflows/tests-e2e.yml @@ -66,7 +66,7 @@ jobs: env: # Our website should build even with limited memory # See https://github.com/facebook/docusaurus/pull/10590 - NODE_OPTIONS: '--max-old-space-size=200' + NODE_OPTIONS: '--max-old-space-size=250' DOCUSAURUS_PERF_LOGGER: 'true' working-directory: ../test-website @@ -137,7 +137,7 @@ jobs: env: # Our website should build even with limited memory # See https://github.com/facebook/docusaurus/pull/10590 - NODE_OPTIONS: '--max-old-space-size=200' + NODE_OPTIONS: '--max-old-space-size=250' DOCUSAURUS_PERF_LOGGER: 'true' working-directory: ../test-website @@ -169,6 +169,11 @@ jobs: E2E_TEST: true - name: Build test-website project run: npm run build + env: + # Our website should build even with limited memory + # See https://github.com/facebook/docusaurus/pull/10590 + NODE_OPTIONS: '--max-old-space-size=250' + DOCUSAURUS_PERF_LOGGER: 'true' working-directory: ../test-website pnpm: @@ -202,4 +207,9 @@ jobs: E2E_TEST: true - name: Build test-website project run: pnpm run build + env: + # Our website should build even with limited memory + # See https://github.com/facebook/docusaurus/pull/10590 + NODE_OPTIONS: '--max-old-space-size=250' + DOCUSAURUS_PERF_LOGGER: 'true' working-directory: ../test-website