@@ -3,19 +3,23 @@ name: Verify Storybook Builder
3
3
on : pull_request
4
4
5
5
jobs :
6
- verify-storybook-builder-linux :
6
+ verify-storybook-builder :
7
+ strategy :
8
+ fail-fast : false
9
+ matrix :
10
+ runs-on : [ubuntu-22.04, windows-2022]
11
+ runs-on : ${{ matrix.runs-on }}
12
+ name : ${{ matrix.runs-on }}
7
13
timeout-minutes : 60
8
- name : Linux
9
- runs-on : ubuntu-22.04
10
14
steps :
11
15
- uses : actions/checkout@v4
12
16
13
- - name : Setup Node 20
17
+ - name : Setup Node 22
14
18
uses : actions/setup-node@v4
15
19
env :
16
20
FORCE_COLOR : 0
17
21
with :
18
- node-version : 20
22
+ node-version : 22
19
23
cache : npm
20
24
21
25
- name : Install Dependencies
33
37
- name : Run tests
34
38
run : npm run test:storybook-builder
35
39
36
- - uses : actions/upload-artifact@v3
40
+ - uses : actions/upload-artifact@v4
37
41
if : always()
38
42
with :
39
- name : playwright-report
40
- path : packages/storybook-framework-web-components/playwright-report/
41
- retention-days : 30
42
-
43
- verify-storybook-builder-windows :
44
- timeout-minutes : 60
45
- name : Windows
46
- runs-on : windows-2022
47
- steps :
48
- - uses : actions/checkout@v4
49
-
50
- - name : Setup Node 20
51
- uses : actions/setup-node@v4
52
- env :
53
- FORCE_COLOR : 0
54
- with :
55
- node-version : 20
56
- cache : npm
57
-
58
- - name : Install Dependencies
59
- run : npm ci
60
-
61
- - name : Build packages
62
- run : npm run build
63
-
64
- - name : Symlink built packages binaries (e.g. "wds")
65
- run : npm ci
66
-
67
- - name : Install Playwright Browsers
68
- run : npx playwright install --with-deps
69
-
70
- - name : Run tests
71
- run : npm run test:storybook-builder
72
-
73
- - uses : actions/upload-artifact@v3
74
- if : always()
75
- with :
76
- name : playwright-report
43
+ name : playwright-report-${{ matrix.runs-on }}
77
44
path : packages/storybook-framework-web-components/playwright-report/
78
45
retention-days : 30
0 commit comments