chore: add more debugging info on Debug Runs (#9754)
This commit is contained in:
parent
004a99aaef
commit
f88729224a
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user