diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index bd802e83bc69..f3932137dedb 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -62,7 +62,7 @@ jobs: key: perf-states-${{ hashFiles('packages/state-transition/test/perf/params.ts') }} - name: Run benchmarks - run: yarn benchmark + run: NODE_OPTIONS='--max-old-space-size=4096' yarn benchmark env: # To download content for tests INFURA_ETH2_CREDENTIALS: ${{ secrets.INFURA_ETH2_CREDENTIALS }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d3355d36fb86..519b28a857f3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -180,7 +180,7 @@ jobs: key: spec-test-data-${{ hashFiles('packages/validator/test/spec/params.ts') }} - name: Unit tests - run: yarn test:unit + run: NODE_OPTIONS='--max-old-space-size=4096' yarn test:unit - name: Upload coverage data run: yarn coverage