@@ -37,14 +37,12 @@ jobs:
37
37
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
38
38
# Wrap `npm run` in a subshell to redirect STDERR to file.
39
39
# Enable core dumps in the subshell.
40
- - run : xvfb-run --auto-servernum -- bash -c "ulimit -c unlimited && npm run test 2>./testrun.log"
41
- env :
42
- BROWSER : ${{ matrix.browser }}
43
- DEBUG : " *,-pw:wrapped*"
44
40
- run : xvfb-run --auto-servernum -- bash -c "ulimit -c unlimited && npm run jest -- --testTimeout=30000"
45
41
if : ${{ always() }}
46
42
env :
47
43
BROWSER : ${{ matrix.browser }}
44
+ DEBUG : " *,-pw:wrapped*"
45
+ DEBUG_FILE : " testrun.log"
48
46
- uses : actions/upload-artifact@v1
49
47
if : failure()
50
48
with :
@@ -76,14 +74,11 @@ jobs:
76
74
- uses : microsoft/playwright-github-action@v1
77
75
- run : npm ci
78
76
- run : npm run build
79
- - run : npm run test 2>./${{ matrix.browser }}-mac-testrun.log
80
- env :
81
- BROWSER : ${{ matrix.browser }}
82
- DEBUG : " *,-pw:wrapped*"
83
77
- run : npm run jest -- --testTimeout=30000
84
- if : ${{ always() }}
85
78
env :
86
79
BROWSER : ${{ matrix.browser }}
80
+ DEBUG : " *,-pw:wrapped*"
81
+ DEBUG_FILE : " testrun.log"
87
82
- uses : actions/upload-artifact@v1
88
83
if : failure()
89
84
with :
93
88
if : failure()
94
89
with :
95
90
name : ${{ matrix.browser }}-mac-testrun.log
96
- path : ${{ matrix.browser }}-mac- testrun.log
91
+ path : testrun.log
97
92
98
93
test_win :
99
94
name : " Windows"
@@ -110,16 +105,12 @@ jobs:
110
105
- uses : microsoft/playwright-github-action@v1
111
106
- run : npm ci
112
107
- run : npm run build
113
- - run : npm run test 2>./${{ matrix.browser }}-win-testrun.log
114
- shell : bash
115
- env :
116
- BROWSER : ${{ matrix.browser }}
117
- DEBUG : " *,-pw:wrapped*"
118
108
- run : npm run jest -- --testTimeout=30000
119
- if : ${{ always() }}
120
109
shell : bash
121
110
env :
122
111
BROWSER : ${{ matrix.browser }}
112
+ DEBUG : " *,-pw:wrapped*"
113
+ DEBUG_FILE : " testrun.log"
123
114
- uses : actions/upload-artifact@v1
124
115
if : failure()
125
116
with :
@@ -129,7 +120,7 @@ jobs:
129
120
if : failure()
130
121
with :
131
122
name : ${{ matrix.browser }}-win-testrun.log
132
- path : ${{ matrix.browser }}-win- testrun.log
123
+ path : testrun.log
133
124
134
125
test-package-installations :
135
126
runs-on : ubuntu-latest
@@ -166,30 +157,29 @@ jobs:
166
157
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
167
158
# Wrap `npm run` in a subshell to redirect STDERR to file.
168
159
# Enable core dumps in the subshell.
169
- - run : xvfb-run --auto-servernum -- bash -c "ulimit -c unlimited && npm run test -- --line-break=100 2>./headful-linux-testrun.log"
170
- env :
171
- DEBUG : " *"
172
- HEADLESS : " false"
173
160
- run : xvfb-run --auto-servernum -- bash -c "ulimit -c unlimited && npm run jest -- --testTimeout=30000"
174
161
if : ${{ always() }}
175
162
env :
176
163
BROWSER : " chromium"
177
164
HEADLESS : " false"
165
+ DEBUG_FILE : " testrun.log"
178
166
- run : xvfb-run --auto-servernum -- bash -c "ulimit -c unlimited && npm run jest -- --testTimeout=30000"
179
167
if : ${{ always() }}
180
168
env :
181
169
BROWSER : " firefox"
182
170
HEADLESS : " false"
171
+ DEBUG_FILE : " testrun.log"
183
172
- run : xvfb-run --auto-servernum -- bash -c "ulimit -c unlimited && npm run jest -- --testTimeout=30000"
184
173
if : ${{ always() }}
185
174
env :
186
175
BROWSER : " webkit"
187
176
HEADLESS : " false"
177
+ DEBUG_FILE : " testrun.log"
188
178
- uses : actions/upload-artifact@v1
189
179
if : failure()
190
180
with :
191
181
name : headful-linux-testrun.log
192
- path : headful-linux- testrun.log
182
+ path : testrun.log
193
183
- uses : actions/upload-artifact@v1
194
184
if : failure()
195
185
with :
@@ -218,15 +208,11 @@ jobs:
218
208
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
219
209
# Wrap `npm run` in a subshell to redirect STDERR to file.
220
210
# Enable core dumps in the subshell.
221
- - run : xvfb-run --auto-servernum -- bash -c "ulimit -c unlimited && npm run test 2>./testrun.log"
222
- env :
223
- BROWSER : ${{ matrix.browser }}
224
- DEBUG : " *,-pw:wrapped*"
225
- PWCHANNEL : ${{ matrix.transport }}
226
211
- run : xvfb-run --auto-servernum -- bash -c "ulimit -c unlimited && npm run jest -- --testTimeout=30000"
227
- if : ${{ always() }}
228
212
env :
229
213
BROWSER : ${{ matrix.browser }}
214
+ DEBUG : " *,-pw:wrapped*"
215
+ DEBUG_FILE : " testrun.log"
230
216
PWCHANNEL : ${{ matrix.transport }}
231
217
- uses : actions/upload-artifact@v1
232
218
if : failure()
0 commit comments