commit 6a4f5dea4c6da7216c72027c53106cc539fad8b4
parent b4675205e4cf598c86fcfa85e5b9870877769c07
Author: MTRNord <mtrnord1@gmail.com>
Date: Mon, 15 May 2023 21:39:16 +0200
Run tests in chromium AND firefox
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/storybook-tests.yml b/.github/workflows/storybook-tests.yml
@@ -18,7 +18,7 @@ jobs:
# also other environment variable
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install Playwright
- run: npx playwright install --with-deps
+ run: npx playwright install chromium firefox --with-deps
- name: Build Storybook
run: |
export NODE_OPTIONS="--max_old_space_size=4096"
@@ -28,6 +28,6 @@ jobs:
export NODE_OPTIONS="--max_old_space_size=4096 --experimental-vm-modules"
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"
+ "npx wait-on tcp:6006 && npm run test-storybook -- --coverage --browsers firefox chromium"
- name: Build lcov.info
run: npx nyc report --reporter=lcov -t coverage/storybook --report-dir coverage/storybook