commit 1024e855af6a1250f9311e641694b9c3f15aa8a4
parent f9c7bbb6de9ccb5d94ab47ae87bb73ff6155b808
Author: MTRNord <mtrnord1@gmail.com>
Date: Mon, 15 May 2023 21:08:51 +0200
Prevent allocation errors
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/storybook-tests.yml b/.github/workflows/storybook-tests.yml
@@ -20,9 +20,12 @@ jobs:
- name: Install Playwright
run: npx playwright install --with-deps
- name: Build Storybook
- run: npm run build-storybook --quiet
+ run: |
+ export NODE_OPTIONS="--max_old_space_size=4096"
+ npm run build-storybook --quiet
- name: Serve Storybook and run tests
run: |
+ export NODE_OPTIONS="--max_old_space_size=4096"
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
"npx http-server storybook-static --port 6006 --silent" \
"npx wait-on tcp:6006 && npm run test-storybook -- --coverage"