Unverified Commit 08773fa0 authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

[test] Stop downloading unused test browsers when generating PR stats (#84329)

parent 9f329f5a
...@@ -111,7 +111,8 @@ if (!allowedActions.has(actionInfo.actionName) && !actionInfo.isRelease) { ...@@ -111,7 +111,8 @@ if (!allowedActions.has(actionInfo.actionName) && !actionInfo.isRelease) {
// changes from merging latest changes // changes from merging latest changes
` && pnpm install --no-frozen-lockfile` ` && pnpm install --no-frozen-lockfile`
: ' && yarn install --network-timeout 1000000' : ' && yarn install --network-timeout 1000000'
}` }`,
{ env: { PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1' } }
) )
await exec.spawnPromise( await exec.spawnPromise(
......
...@@ -36,7 +36,7 @@ exec.spawn = function spawn(command = '', opts = {}) { ...@@ -36,7 +36,7 @@ exec.spawn = function spawn(command = '', opts = {}) {
exec.spawnPromise = function spawnPromise(command = '', opts = {}) { exec.spawnPromise = function spawnPromise(command = '', opts = {}) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const child = exec.spawn(command) const child = exec.spawn(command, opts)
child.on('exit', (code, signal) => { child.on('exit', (code, signal) => {
if (code || signal) { if (code || signal) {
return reject( return reject(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment