Skip to content

Commit

Permalink
chore: add more debugging info on Debug Runs (#9754)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightning00Blade committed Mar 1, 2023
1 parent 004a99a commit f887292
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tools/mochaRunner/src/main.ts
Expand Up @@ -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];
Expand All @@ -121,6 +134,7 @@ async function main() {
})
),
},
githubActionDebugging,
]);

const tmpDir = fs.mkdtempSync(
Expand Down

0 comments on commit f887292

Please sign in to comment.