File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -261,8 +261,10 @@ func.defaultConfig = {
261261 '--touch-events' ,
262262 '--window-size=' + argv . width + ',' + argv . height ,
263263 isCI ? '--ignore-gpu-blocklist' : '' ,
264- isCI ? '--use-gl=angle' : '' ,
265- isCI ? '--use-angle=swiftshader' : '' ,
264+ // The following two flags are needed only for the "NoCI" tests which run in GitHub Actions,
265+ // since the GPU is not available to those runners and therefore we need to use SwiftShader instead.
266+ isCI && process . env . GITHUB_ACTIONS ? '--use-gl=angle' : '' ,
267+ isCI && process . env . GITHUB_ACTIONS ? '--use-angle=swiftshader' : '' ,
266268 isCI ? '--no-sandbox' : '' ,
267269 isBundleTest && basename ( testFileGlob ) === 'no_webgl' ? '--disable-webgl' : ''
268270 ]
You can’t perform that action at this time.
0 commit comments