@@ -14,14 +14,19 @@ jobs:
14
14
with :
15
15
ref : ${{ github.event.pull_request.head.sha }}
16
16
17
+ - uses : pnpm/action-setup@v4
18
+ name : Install pnpm
19
+ with :
20
+ run_install : false
21
+
17
22
- name : install
18
- run : npm ci
23
+ run : pnpm install --frozen-lockfile
19
24
20
25
- name : build lib
21
- run : npm run lib
26
+ run : pnpm lib
22
27
23
28
- name : build demo
24
- run : npm run build
29
+ run : pnpm build
25
30
26
31
lint :
27
32
runs-on : ubuntu-latest
@@ -31,11 +36,16 @@ jobs:
31
36
with :
32
37
ref : ${{ github.event.pull_request.head.sha }}
33
38
39
+ - uses : pnpm/action-setup@v4
40
+ name : Install pnpm
41
+ with :
42
+ run_install : false
43
+
34
44
- name : install
35
- run : npm ci
45
+ run : pnpm install --frozen-lockfile
36
46
37
47
- name : lint
38
- run : npm run lint
48
+ run : pnpm lint
39
49
40
50
test-chrome :
41
51
runs-on : ubuntu-latest
@@ -45,11 +55,16 @@ jobs:
45
55
with :
46
56
ref : ${{ github.event.pull_request.head.sha }}
47
57
58
+ - uses : pnpm/action-setup@v4
59
+ name : Install pnpm
60
+ with :
61
+ run_install : false
62
+
48
63
- name : install
49
- run : npm ci
64
+ run : pnpm install --frozen-lockfile
50
65
51
66
- name : test
52
- run : npm run test -- --watch=false --browsers=ChromeHeadless
67
+ run : pnpm test --watch=false --browsers=ChromeHeadless
53
68
54
69
test-firefox :
55
70
runs-on : ubuntu-latest
@@ -59,11 +74,16 @@ jobs:
59
74
with :
60
75
ref : ${{ github.event.pull_request.head.sha }}
61
76
77
+ - uses : pnpm/action-setup@v4
78
+ name : Install pnpm
79
+ with :
80
+ run_install : false
81
+
62
82
- name : install
63
- run : npm ci
83
+ run : pnpm install --frozen-lockfile
64
84
65
85
- name : test
66
- run : npm run test -- --watch=false --browsers=FirefoxHeadless
86
+ run : pnpm test --watch=false --browsers=FirefoxHeadless
67
87
68
88
test-safari :
69
89
runs-on : macos-latest
@@ -73,11 +93,16 @@ jobs:
73
93
with :
74
94
ref : ${{ github.event.pull_request.head.sha }}
75
95
96
+ - uses : pnpm/action-setup@v4
97
+ name : Install pnpm
98
+ with :
99
+ run_install : false
100
+
76
101
- name : install
77
- run : npm ci
102
+ run : pnpm install --frozen-lockfile
78
103
79
104
- name : test
80
- run : npm run test -- --watch=false --browsers=SafariNative
105
+ run : pnpm test -- --watch=false --browsers=SafariNative
81
106
82
107
prettier :
83
108
runs-on : ubuntu-latest
@@ -87,8 +112,13 @@ jobs:
87
112
with :
88
113
ref : ${{ github.event.pull_request.head.sha }}
89
114
115
+ - uses : pnpm/action-setup@v4
116
+ name : Install pnpm
117
+ with :
118
+ run_install : false
119
+
90
120
- name : install
91
- run : npm ci
121
+ run : pnpm install --frozen-lockfile
92
122
93
123
- name : prettier
94
- run : npm run prettier-check
124
+ run : pnpm prettier-check
0 commit comments