Skip to content

Commit e2685a8

Browse files
committed
chore: add steps to prepare and upload Playwright artifacts in Storybook tests
1 parent 29758e7 commit e2685a8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/validate.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,18 @@ jobs:
161161
- name: Run Storybook visual tests
162162
if: env.APPLITOOLS_API_KEY
163163
run: npm run test:storybook -- --storybook-url http://localhost:3000/storybook/index.html
164+
- name: Prepare Playwright artifact directory
165+
if: always()
166+
run: |
167+
mkdir -p playwright-artifact
168+
if [ -d test-results ]; then cp -r test-results/* playwright-artifact/; fi
169+
if [ -d playwright-report ]; then cp -r playwright-report/* playwright-artifact/; fi
170+
- name: Upload Playwright Storybook artifact
171+
if: always()
172+
uses: actions/upload-artifact@v4
173+
with:
174+
name: playwright-storybook
175+
path: playwright-artifact
164176
- name: Upload Storybook logs if exists
165177
if: always()
166178
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)