-
Notifications
You must be signed in to change notification settings - Fork 123
45 lines (37 loc) · 1 KB
/
test-playwright.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Visual Regression Tests
on:
pull_request:
branches:
- patch
concurrency: ${{ github.workflow }}-${{ github.ref || github.run_id }}
jobs:
visual-tests:
name: Test for accordion --single
runs-on: macos-13
steps:
- name: Checkout Repo
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install Dependencies and build the project
run: |
yarn
yarn playwright install --with-deps
yarn build
- name: Create storybook build
run: |
cd example/storybook
yarn build-storybook
- name: Run test
run: |
cd example/storybook
yarn test:screenshot --accordion=single
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: example/storybook/playwright-report/
overwrite: true
retention-days: 10