Skip to content

Commit 1dcbf88

Browse files
committed
ci(workflow): prevent e2e to run out of memory
1 parent 108dd17 commit 1dcbf88

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/e2e-matrix.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
- uses: actions/setup-node@v4
6969
with:
7070
node-version: ${{ matrix.node }}
71-
cache: 'pnpm'
71+
cache: pnpm
7272

7373
- uses: actions/cache@v4
7474
id: cache-modules
@@ -133,7 +133,7 @@ jobs:
133133
if: needs.init.outputs.e2e-enabled == 'true'
134134
with:
135135
node-version: ${{ matrix.node }}
136-
cache: 'pnpm'
136+
cache: pnpm
137137

138138
- uses: actions/cache@v4
139139
if: needs.init.outputs.e2e-enabled == 'true'
@@ -158,8 +158,10 @@ jobs:
158158
env:
159159
CDWR_E2E_PACKAGE_MANAGER: ${{ matrix.pm }}
160160
CDWR_E2E_VERDACCIO_HOST: ${{ matrix.verdaccio }}
161-
NX_CACHE_DIRECTORY: 'tmp'
162-
NX_PERF_LOGGING: 'false'
161+
NX_CACHE_DIRECTORY: tmp
162+
NX_PERF_LOGGING: false
163+
# Fix out-of-memory issue on macOS runners
164+
NODE_OPTIONS: --max_old_space_size=4096
163165

164166
- name: Save test result
165167
if: always()

0 commit comments

Comments
 (0)