Skip to content

Commit

Permalink
add max memory for Docusaurus site build CI
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Oct 17, 2024
1 parent 9a5eedc commit 73965ed
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/tests-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ jobs:
E2E_TEST: true
- name: Build test-website project
run: yarn build
env:
# Our website should build even with limited memory
# See https://github.com/facebook/docusaurus/pull/10590
NODE_OPTIONS: '--max-old-space-size=150'
working-directory: ../test-website

yarn-berry:
Expand Down Expand Up @@ -129,6 +133,10 @@ jobs:
- name: Build test-website project
run: yarn build
env:
# Our website should build even with limited memory
# See https://github.com/facebook/docusaurus/pull/10590
NODE_OPTIONS: '--max-old-space-size=150'
working-directory: ../test-website

npm:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,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=300'
NODE_OPTIONS: '--max-old-space-size=200'
- name: Docusaurus site CSS order
run: yarn workspace website test:css-order

Expand Down

0 comments on commit 73965ed

Please sign in to comment.