@@ -10,274 +10,48 @@ permissions:
1010 contents : read
1111
1212jobs :
13- build-20 :
14- name : build (20)
15- runs-on : blacksmith-4vcpu-ubuntu-2404
13+ build :
14+ name : build (Node.js ${{ matrix.nodeVersion }})
15+ runs-on : blacksmith-8vcpu-ubuntu-2404
16+ strategy :
17+ fail-fast : false
18+ matrix :
19+ nodeVersion : ['22.23.2', '24', '26']
1620 steps :
1721 - name : Checkout
1822 uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
1923
2024 - name : Set up pnpm
2125 uses : pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093
2226 with :
23- version : 9.15.0
27+ version : 11.27.1
2428
2529 - name : Set up Node.js
2630 uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
2731 with :
28- node-version : 20
29- cache : ' pnpm'
32+ node-version : ${{ matrix.nodeVersion }}
3033
3134 - name : Install dependencies
3235 run : pnpm install --frozen-lockfile
3336
34- - name : Lint
35- run : pnpm lint
36-
37- - name : Build
38- run : pnpm build
39-
40- - name : Cache build output
41- uses : actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
42- with :
43- path : ./lib
44- key : ${{ runner.os }}-node-20-build-${{ github.sha }}
45- restore-keys : |
46- ${{ runner.os }}-build-20
47-
48- build-22 :
49- name : build (22)
50- runs-on : blacksmith-4vcpu-ubuntu-2404
51- steps :
52- - name : Checkout
53- uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
54-
55- - name : Set up pnpm
56- uses : pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093
57- with :
58- version : 9.15.0
59-
60- - name : Set up Node.js
61- uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
62- with :
63- node-version : 22
64-
65- - name : Install dependencies
66- run : pnpm install --frozen-lockfile
37+ - name : Install Playwright browsers
38+ run : pnpm exec playwright install chromium --with-deps --only-shell
6739
6840 - name : Lint
6941 run : pnpm lint
7042
7143 - name : Build
7244 run : pnpm build
7345
74- - name : Cache build output
75- uses : actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
76- with :
77- path : ./lib
78- key : ${{ runner.os }}-node-22-build-${{ github.sha }}
79- restore-keys : |
80- ${{ runner.os }}-build-22
81-
82- test-unit :
83- name : test (unit)
84- needs : build-22
85- runs-on : blacksmith-4vcpu-ubuntu-2404
86- steps :
87- - name : Checkout
88- uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
89-
90- - name : Set up pnpm
91- uses : pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093
92- with :
93- version : 9.15.0
94-
95- - name : Set up Node.js
96- uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
97- with :
98- node-version : 22
99-
100- - name : Restore build cache
101- uses : actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
102- with :
103- path : ./lib
104- key : ${{ runner.os }}-node-22-build-${{ github.sha }}
105- restore-keys : |
106- ${{ runner.os }}-node-22-build-
107-
108- - name : Install dependencies
109- run : pnpm install --frozen-lockfile
110-
111- - name : Install Playwright browsers
112- run : pnpm exec playwright install chromium --with-deps --only-shell
46+ - name : Tests
47+ run : pnpm test
11348
114- - name : Unit tests
115- run : pnpm test:unit
49+ - name : Playwright tests
50+ run : pnpm test:playwright
11651
117- test-node-20 :
118- name : test (node.js) (20)
119- needs : build-20
120- runs-on : blacksmith-4vcpu-ubuntu-2404
121- steps :
122- - name : Checkout
123- uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
124-
125- - name : Set up pnpm
126- uses : pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093
127- with :
128- version : 9.15.0
129-
130- - name : Set up Node.js
131- uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
132- with :
133- node-version : 20
134-
135- - name : Restore build cache
136- uses : actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
137- with :
138- path : ./lib
139- key : ${{ runner.os }}-node-20-build-${{ github.sha }}
140- restore-keys : |
141- ${{ runner.os }}-node-20-build-
142-
143- - name : Install dependencies
144- run : pnpm install --frozen-lockfile
145-
146- - name : Node.js tests
147- run : pnpm test:node
148-
149- - name : Memory tests
150- run : pnpm test:memory
151-
152- test-node-22 :
153- name : test (node.js) (22)
154- needs : build-22
155- runs-on : blacksmith-4vcpu-ubuntu-2404
156- steps :
157- - name : Checkout
158- uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
159-
160- - name : Set up pnpm
161- uses : pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093
162- with :
163- version : 9.15.0
164-
165- - name : Set up Node.js
166- uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
167- with :
168- node-version : 22
169-
170- - name : Restore build cache
171- uses : actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
172- with :
173- path : ./lib
174- key : ${{ runner.os }}-node-22-build-${{ github.sha }}
175- restore-keys : |
176- ${{ runner.os }}-node-22-build-
177-
178- - name : Install dependencies
179- run : pnpm install --frozen-lockfile
180-
181- - name : Node.js tests
182- run : pnpm test:node
183-
184- - name : Memory tests
185- run : pnpm test:memory
186-
187- test-e2e :
188- name : test (e2e) (20)
189- needs : build-20
190- runs-on : blacksmith-4vcpu-ubuntu-2404
191- steps :
192- - name : Checkout
193- uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
194-
195- - name : Set up pnpm
196- uses : pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093
197- with :
198- version : 9.15.0
199-
200- - name : Set up Node.js
201- uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
202- with :
203- node-version : 20
204-
205- - name : Install dependencies
206- run : pnpm install --frozen-lockfile
207-
208- - name : E2E tests
209- run : pnpm test:e2e
210-
211- test-browser :
212- name : test (browser)
213- needs : build-22
214- runs-on : blacksmith-8vcpu-ubuntu-2404
215- steps :
216- - name : Checkout
217- uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
218-
219- - name : Set up pnpm
220- uses : pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093
221- with :
222- version : 9.15.0
223-
224- - name : Set up Node.js
225- uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
226- with :
227- node-version : 22
228-
229- - name : Restore build cache
230- uses : actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
231- with :
232- path : ./lib
233- key : ${{ runner.os }}-node-22-build-${{ github.sha }}
234- restore-keys : |
235- ${{ runner.os }}-node-22-build-
236-
237- - name : Install dependencies
238- run : pnpm install --frozen-lockfile
239-
240- - name : Playwright install
241- run : pnpm exec playwright install chromium --with-deps --only-shell
242-
243- - name : Browser tests
244- run : pnpm test:browser
245-
246- - name : Upload test artifacts
52+ - name : Upload Playwright artifacts
24753 if : always()
24854 uses : actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a
24955 with :
250- name : playwright-report
251- path : test/browser/test-results
252-
253- test-native :
254- name : test (react-native)
255- needs : build-20
256- runs-on : blacksmith-4vcpu-ubuntu-2404
257- steps :
258- - name : Checkout
259- uses : actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0
260-
261- - name : Set up pnpm
262- uses : pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093
263- with :
264- version : 9.15.0
265-
266- - name : Set up Node.js
267- uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
268- with :
269- node-version : 20
270-
271- - name : Restore build cache
272- uses : actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9
273- with :
274- path : ./lib
275- key : ${{ runner.os }}-node-20-build-${{ github.sha }}
276- restore-keys : |
277- ${{ runner.os }}-node-20-build-
278-
279- - name : Install dependencies
280- run : pnpm install --frozen-lockfile
281-
282- - name : React Native tests
283- run : pnpm test:native
56+ name : playwright-report-node-${{ matrix.nodeVersion }}
57+ path : test/test-results
0 commit comments