Skip to content

Commit 08773fa

Browse files
authored
[test] Stop downloading unused test browsers when generating PR stats (#84329)
1 parent 9f329f5 commit 08773fa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/actions/next-stats-action/src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ if (!allowedActions.has(actionInfo.actionName) && !actionInfo.isRelease) {
111111
// changes from merging latest changes
112112
` && pnpm install --no-frozen-lockfile`
113113
: ' && yarn install --network-timeout 1000000'
114-
}`
114+
}`,
115+
{ env: { PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: '1' } }
115116
)
116117

117118
await exec.spawnPromise(

.github/actions/next-stats-action/src/util/exec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ exec.spawn = function spawn(command = '', opts = {}) {
3636

3737
exec.spawnPromise = function spawnPromise(command = '', opts = {}) {
3838
return new Promise((resolve, reject) => {
39-
const child = exec.spawn(command)
39+
const child = exec.spawn(command, opts)
4040
child.on('exit', (code, signal) => {
4141
if (code || signal) {
4242
return reject(

0 commit comments

Comments
 (0)