@@ -12,19 +12,25 @@ jobs:
12
12
steps :
13
13
- uses : actions/checkout@v4
14
14
15
+ - name : Install pnpm
16
+ uses : pnpm/action-setup@v2
17
+ with :
18
+ version : latest
19
+ run_install : false
20
+
15
21
- name : Setup Node.js
16
22
uses : actions/setup-node@v4
17
23
with :
18
- node-version : ' lts/* '
19
- cache : ' npm '
20
-
24
+ node-version : ' 18 '
25
+ cache : ' pnpm '
26
+
21
27
- name : Install dependencies
22
- run : npm ci --legacy-peer-deps
23
-
28
+ run : pnpm install --frozen-lockfile
29
+
24
30
- name : Run unit tests
25
31
# Continue even if tests fail
26
32
continue-on-error : true
27
- run : npm test
33
+ run : pnpm test
28
34
29
35
- name : Upload test report
30
36
if : always()
@@ -41,14 +47,20 @@ jobs:
41
47
steps :
42
48
- uses : actions/checkout@v4
43
49
50
+ - name : Install pnpm
51
+ uses : pnpm/action-setup@v2
52
+ with :
53
+ version : latest
54
+ run_install : false
55
+
44
56
- name : Setup Node.js
45
57
uses : actions/setup-node@v4
46
58
with :
47
- node-version : ' lts/* '
48
- cache : ' npm '
59
+ node-version : ' 18 '
60
+ cache : ' pnpm '
49
61
50
62
- name : Install dependencies
51
- run : npm ci --legacy-peer-deps
63
+ run : pnpm install --frozen-lockfile
52
64
53
65
# Skip Playwright browser installation when running locally with act
54
66
- name : Check if running in GitHub Actions
@@ -62,19 +74,19 @@ jobs:
62
74
63
75
- name : Start Storybook in background
64
76
if : steps.check_github.outputs.is_github == 'true'
65
- run : npm run storybook &
77
+ run : pnpm run storybook &
66
78
67
79
- name : Wait for Storybook to be ready
68
80
if : steps.check_github.outputs.is_github == 'true'
69
81
run : |
70
- npm install -g wait-on
82
+ pnpm install -g wait-on
71
83
wait-on http://localhost:6006
72
84
73
85
- name : Run component tests
74
86
if : steps.check_github.outputs.is_github == 'true'
75
87
# Continue even if tests fail
76
88
continue-on-error : true
77
- run : npm run test:component
89
+ run : pnpm run test:component
78
90
79
91
- name : Upload Playwright report
80
92
if : always() && steps.check_github.outputs.is_github == 'true'
0 commit comments