From d898858e15761dcff9942afd4eab8c6ba0f9b534 Mon Sep 17 00:00:00 2001 From: Milan Holemans <11723921+milanholemans@users.noreply.github.com> Date: Mon, 3 Feb 2025 11:00:57 +0100 Subject: [PATCH] Fixes workflow memory issue --- .github/workflows/check_pr.yml | 2 ++ .github/workflows/release_next.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/check_pr.yml b/.github/workflows/check_pr.yml index 8c684139037..61138df224e 100644 --- a/.github/workflows/check_pr.yml +++ b/.github/workflows/check_pr.yml @@ -103,6 +103,8 @@ jobs: # we run coverage only on Node that was used to build if: matrix.nodeRun == matrix.nodeBuild run: npm test + env: + NODE_OPTIONS: '--max_old_space_size=4096' - name: Test without coverage # we want to run tests on older Node versions to ensure that code works if: matrix.nodeRun != matrix.nodeBuild diff --git a/.github/workflows/release_next.yml b/.github/workflows/release_next.yml index 837c176899f..1b1bb628466 100644 --- a/.github/workflows/release_next.yml +++ b/.github/workflows/release_next.yml @@ -105,6 +105,8 @@ jobs: # we run coverage only on Node that was used to build if: matrix.nodeRun == matrix.nodeBuild run: npm test + env: + NODE_OPTIONS: '--max_old_space_size=4096' - name: Test without coverage # we want to run tests on older Node versions to ensure that code works if: matrix.nodeRun != matrix.nodeBuild