-
Notifications
You must be signed in to change notification settings - Fork 5
221 lines (199 loc) · 7.13 KB
/
test.yml
File metadata and controls
221 lines (199 loc) · 7.13 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
name: Test
permissions:
contents: read
on:
push:
branches: ['main', 'master']
pull_request:
jobs:
nodejs:
runs-on: ubuntu-latest
name: 'Node.js ${{ matrix.node-version }}'
strategy:
matrix:
node-version: [20.19.0, 20.x, 22.12.0, 22.x, 24.x, 25.x]
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda
with:
run_install: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
registry-url: 'https://registry.npmjs.org'
- run: pnpm i --frozen-lockfile
- run: pnpm run test
jsvu:
runs-on: ubuntu-22.04
name: '${{ matrix.engine }} (barebone)'
strategy:
matrix:
engine: [hermes, v8, javascriptcore, spidermonkey, quickjs, xs, graaljs]
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda
with:
run_install: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version-file: '.nvmrc'
cache: pnpm
registry-url: 'https://registry.npmjs.org'
- run: pnpm i --frozen-lockfile
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: ~/.jsvu
key: barebone-jsvu-${{ matrix.engine }}-${{ runner.os }}
- run: node --run jsvu -- --os=linux64 --engines="${{ matrix.engine }}"
- run: EXODUS_TEST_DROP_NETWORK=1 node --run "test:${{ matrix.engine }}"
workerd:
runs-on: ubuntu-latest
name: 'Test on workerd'
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda
with:
run_install: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version-file: '.nvmrc'
cache: pnpm
registry-url: 'https://registry.npmjs.org'
- run: pnpm i --frozen-lockfile
- run: node --run test:workerd
servo:
runs-on: ubuntu-latest
name: 'Servo ${{ matrix.servo-version }}'
strategy:
matrix:
servo-version: [0.0.4]
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda
with:
run_install: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version-file: '.nvmrc'
cache: pnpm
registry-url: 'https://registry.npmjs.org'
- run: wget "https://github.com/servo/servo/releases/download/v${{ matrix.servo-version }}/servo-x86_64-linux-gnu.tar.gz"
- run: tar -xf servo-x86_64-linux-gnu.tar.gz
- run: sudo ln -s "$GITHUB_WORKSPACE/servo/servo" /usr/bin/
- run: sudo apt update
- run: sudo apt install gstreamer1.0-plugins-bad
- run: pnpm i --frozen-lockfile
- run: node --run test:servo:bundle
playwright:
runs-on: ubuntu-22.04
name: '${{ matrix.browser }} (playwright)'
strategy:
fail-fast: false
matrix:
browser: [chromium, firefox, webkit]
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda
with:
run_install: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version-file: '.nvmrc'
cache: pnpm
registry-url: 'https://registry.npmjs.org'
- run: pnpm i --frozen-lockfile
- run: node --run playwright -- install --with-deps "${{ matrix.browser }}"
- run: node --run "test:${{ matrix.browser }}:playwright"
puppeteer:
runs-on: ubuntu-22.04
name: '${{ matrix.browser }} (puppeteer)'
strategy:
fail-fast: false
matrix:
browser: ['chrome', 'firefox']
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda
with:
run_install: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version-file: '.nvmrc'
cache: pnpm
registry-url: 'https://registry.npmjs.org'
- run: pnpm i --frozen-lockfile
- run: node --run "test:${{ matrix.browser }}:puppeteer"
electron:
runs-on: ubuntu-22.04
name: 'Electron'
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda
with:
run_install: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version-file: '.nvmrc'
cache: pnpm
registry-url: 'https://registry.npmjs.org'
- run: pnpm i --frozen-lockfile
- run: node --run test:electron:as-node
- run: xvfb-run node --run test:electron:bundle
bun:
runs-on: ubuntu-22.04
name: 'Bun'
timeout-minutes: 10
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda
with:
run_install: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version-file: '.nvmrc'
cache: pnpm
registry-url: 'https://registry.npmjs.org'
- uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76
- run: pnpm i --frozen-lockfile
- run: node --run test:bun
deno:
runs-on: ubuntu-22.04
name: 'Deno ${{ matrix.deno-version }}'
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
deno-version: ['v2']
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda
with:
run_install: false
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020
with:
node-version-file: '.nvmrc'
cache: pnpm
registry-url: 'https://registry.npmjs.org'
- uses: denoland/setup-deno@909cc5acb0fdd60627fb858598759246509fa755
with:
deno-version: ${{ matrix.deno-version }}
- run: pnpm i --frozen-lockfile
- run: node --run test:deno
windows:
runs-on: windows-latest
name: 'Windows with Node.js ${{ matrix.node-version }}'
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
node-version: [20.19.0, 20.x, 22.12.0, 22.x, 24.x, 25.x]
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda
with:
run_install: false
- run: pnpm env use -g ${{ matrix.node-version }}
- run: pnpm i --frozen-lockfile
- run: pnpm run test