@@ -26,218 +26,19 @@ env:
26
26
DEBUG_GIT_COMMIT_INFO : 1
27
27
28
28
jobs :
29
- test_linux :
30
- name : ${{ matrix.os }} (${{ matrix.browser }} - Node.js ${{ matrix.node-version }})
31
- environment : ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
32
- strategy :
33
- fail-fast : false
34
- matrix :
35
- browser : [chromium, firefox, webkit]
36
- os : [ubuntu-22.04]
37
- node-version : [18]
38
- include :
39
- - os : ubuntu-22.04
40
- node-version : 20
41
- browser : chromium
42
- - os : ubuntu-22.04
43
- node-version : 22
44
- browser : chromium
45
- - os : ubuntu-22.04
46
- node-version : 24
47
- browser : chromium
48
- runs-on : ${{ matrix.os }}
49
- permissions :
50
- id-token : write # This is required for OIDC login (azure/login) to succeed
51
- contents : read # This is required for actions/checkout to succeed
29
+ test_webkit_wsl :
30
+ name : Webkit WSL
31
+ runs-on : windows-2025
52
32
steps :
53
33
- uses : actions/checkout@v4
54
34
- uses : ./.github/actions/run-test
55
35
with :
56
- node-version : ${{ matrix.node-version }}
57
- browsers-to-install : ${{ matrix.browser }} chromium
58
- command : npm run test -- --project=${{ matrix.browser }}-*
59
- bot-name : " ${{ matrix.browser }}-${{ matrix.os }}-node${{ matrix.node-version }}"
60
- flakiness-client-id : ${{ secrets.AZURE_FLAKINESS_DASHBOARD_CLIENT_ID }}
61
- flakiness-tenant-id : ${{ secrets.AZURE_FLAKINESS_DASHBOARD_TENANT_ID }}
62
- flakiness-subscription-id : ${{ secrets.AZURE_FLAKINESS_DASHBOARD_SUBSCRIPTION_ID }}
63
-
64
- test_linux_chromium_tot :
65
- name : ${{ matrix.os }} (chromium tip-of-tree)
66
- environment : ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
67
- strategy :
68
- fail-fast : false
69
- matrix :
70
- os : [ubuntu-22.04]
71
- runs-on : ${{ matrix.os }}
72
- permissions :
73
- id-token : write # This is required for OIDC login (azure/login) to succeed
74
- contents : read # This is required for actions/checkout to succeed
75
- steps :
76
- - uses : actions/checkout@v4
77
- - uses : ./.github/actions/run-test
78
- with :
79
- browsers-to-install : chromium-tip-of-tree
80
- command : npm run test -- --project=chromium-*
81
- bot-name : " ${{ matrix.os }}-chromium-tip-of-tree"
36
+ node-version : 22
37
+ browsers-to-install : webkit-wsl chromium
38
+ command : npm run test -- --project=webkit-* --reporter=list
39
+ bot-name : " webkit-wsl-headed"
82
40
flakiness-client-id : ${{ secrets.AZURE_FLAKINESS_DASHBOARD_CLIENT_ID }}
83
41
flakiness-tenant-id : ${{ secrets.AZURE_FLAKINESS_DASHBOARD_TENANT_ID }}
84
42
flakiness-subscription-id : ${{ secrets.AZURE_FLAKINESS_DASHBOARD_SUBSCRIPTION_ID }}
85
43
env :
86
- PWTEST_CHANNEL : chromium-tip-of-tree
87
-
88
- test_test_runner :
89
- name : Test Runner
90
- environment : ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
91
- strategy :
92
- fail-fast : false
93
- matrix :
94
- os : [ubuntu-latest, windows-latest, macos-latest]
95
- node-version : [18]
96
- shardIndex : [1, 2]
97
- shardTotal : [2]
98
- include :
99
- - os : ubuntu-latest
100
- node-version : 20
101
- shardIndex : 1
102
- shardTotal : 2
103
- - os : ubuntu-latest
104
- node-version : 20
105
- shardIndex : 2
106
- shardTotal : 2
107
- - os : ubuntu-latest
108
- node-version : 22
109
- shardIndex : 1
110
- shardTotal : 2
111
- - os : ubuntu-latest
112
- node-version : 22
113
- shardIndex : 2
114
- shardTotal : 2
115
- - os : ubuntu-latest
116
- node-version : 24
117
- shardIndex : 1
118
- shardTotal : 2
119
- - os : ubuntu-latest
120
- node-version : 24
121
- shardIndex : 2
122
- shardTotal : 2
123
- runs-on : ${{ matrix.os }}
124
- permissions :
125
- id-token : write # This is required for OIDC login (azure/login) to succeed
126
- contents : read # This is required for actions/checkout to succeed
127
- steps :
128
- - uses : actions/checkout@v4
129
- - uses : ./.github/actions/run-test
130
- with :
131
- node-version : ${{matrix.node-version}}
132
- command : npm run ttest -- --shard ${{ matrix.shardIndex }}/${{ matrix.shardTotal }}
133
- bot-name : " ${{ matrix.os }}-node${{ matrix.node-version }}-${{ matrix.shardIndex }}"
134
- flakiness-client-id : ${{ secrets.AZURE_FLAKINESS_DASHBOARD_CLIENT_ID }}
135
- flakiness-tenant-id : ${{ secrets.AZURE_FLAKINESS_DASHBOARD_TENANT_ID }}
136
- flakiness-subscription-id : ${{ secrets.AZURE_FLAKINESS_DASHBOARD_SUBSCRIPTION_ID }}
137
- env :
138
- PWTEST_CHANNEL : firefox-beta
139
-
140
- test_web_components :
141
- name : Web Components
142
- runs-on : ubuntu-latest
143
- steps :
144
- - uses : actions/checkout@v4
145
- - uses : actions/setup-node@v4
146
- with :
147
- node-version : 18
148
- - run : npm ci
149
- - run : npm run build
150
-
151
- - run : npx playwright install --with-deps
152
- - run : npm run test-html-reporter
153
- env :
154
- PWTEST_BOT_NAME : " web-components-html-reporter"
155
- - name : Upload blob report
156
- if : ${{ !cancelled() }}
157
- uses : ./.github/actions/upload-blob-report
158
- with :
159
- report_dir : packages/html-reporter/blob-report
160
- job_name : " web-components-html-reporter"
161
-
162
- - run : npm run test-web
163
- if : ${{ !cancelled() }}
164
- env :
165
- PWTEST_BOT_NAME : " web-components-web"
166
- - name : Upload blob report
167
- if : ${{ !cancelled() }}
168
- uses : ./.github/actions/upload-blob-report
169
- with :
170
- report_dir : packages/web/blob-report
171
- job_name : " web-components-web"
172
-
173
- test_vscode_extension :
174
- name : VSCode Extension
175
- runs-on : ubuntu-latest
176
- env :
177
- PWTEST_BOT_NAME : " vscode-extension"
178
- DEBUG_GIT_COMMIT_INFO : " "
179
- steps :
180
- - uses : actions/checkout@v4
181
- - uses : actions/setup-node@v4
182
- with :
183
- node-version : 18
184
- - run : npm ci
185
- env :
186
- DEBUG : pw:install
187
- - run : npm run build
188
- - run : npx playwright install chromium
189
- - name : Checkout extension
190
- run : git clone https://github.com/microsoft/playwright-vscode.git
191
- - name : Print extension revision
192
- run : git rev-parse HEAD
193
- working-directory : ./playwright-vscode
194
- - name : Remove @playwright/test from extension dependencies
195
- run : node -e "const p = require('./package.json'); delete p.devDependencies['@playwright/test']; fs.writeFileSync('./package.json', JSON.stringify(p, null, 2));"
196
- working-directory : ./playwright-vscode
197
- - name : Build extension
198
- run : npm ci && npm run build
199
- working-directory : ./playwright-vscode
200
- - name : Run extension tests
201
- run : npm run test -- --workers=1
202
- working-directory : ./playwright-vscode
203
- - name : Upload blob report
204
- if : ${{ !cancelled() }}
205
- uses : ./.github/actions/upload-blob-report
206
- with :
207
- report_dir : playwright-vscode/blob-report
208
- job_name : ${{ env.PWTEST_BOT_NAME }}
209
-
210
- test_package_installations :
211
- name : " Installation Test ${{ matrix.os }}"
212
- environment : ${{ github.event_name == 'push' && 'allow-uploading-flakiness-results' || null }}
213
- strategy :
214
- fail-fast : false
215
- matrix :
216
- os :
217
- - ubuntu-latest
218
- - macos-latest
219
- - windows-latest
220
- runs-on : ${{ matrix.os }}
221
- timeout-minutes : 30
222
- permissions :
223
- id-token : write # This is required for OIDC login (azure/login) to succeed
224
- contents : read # This is required for actions/checkout to succeed
225
- steps :
226
- - uses : actions/checkout@v4
227
- - run : npm install -g yarn@1
228
- - run : npm install -g pnpm@8
229
- - name : Setup Ubuntu Binary Installation # TODO: Remove when https://github.com/electron/electron/issues/42510 is fixed
230
- if : ${{ runner.os == 'Linux' }}
231
- run : |
232
- if grep -q "Ubuntu 24" /etc/os-release; then
233
- sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
234
- fi
235
- shell : bash
236
- - uses : ./.github/actions/run-test
237
- with :
238
- command : npm run itest
239
- bot-name : " package-installations-${{ matrix.os }}"
240
- shell : ${{ matrix.os == 'windows-latest' && 'pwsh' || 'bash' }}
241
- flakiness-client-id : ${{ secrets.AZURE_FLAKINESS_DASHBOARD_CLIENT_ID }}
242
- flakiness-tenant-id : ${{ secrets.AZURE_FLAKINESS_DASHBOARD_TENANT_ID }}
243
- flakiness-subscription-id : ${{ secrets.AZURE_FLAKINESS_DASHBOARD_SUBSCRIPTION_ID }}
44
+ PWTEST_CHANNEL : webkit-wsl
0 commit comments