chore: add more debugging info on Debug Runs (#9754)

This commit is contained in:
Nikolay Vitkov 2023-03-01 12:30:42 +01:00 committed by GitHub
parent 004a99aaef
commit f88729224a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,6 +107,19 @@ async function main() {
parameters
);
// Add more logging when the GitHub Action Debugging option is set
// https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables
const githubActionDebugging = process.env['RUNNER_DEBUG']
? {
DEBUG: 'puppeteer:*',
EXTRA_LAUNCH_OPTIONS: {
extraPrefsFirefox: {
'remote.log.level': 'Trace',
},
},
}
: {};
const env = extendProcessEnv([
...parameters.map(param => {
return parsedSuitesFile.parameterDefinitions[param];
@ -121,6 +134,7 @@ async function main() {
})
),
},
githubActionDebugging,
]);
const tmpDir = fs.mkdtempSync(