From ba547e78495a4f7938c4c7dfb4133f31d1c39ecb Mon Sep 17 00:00:00 2001 From: Federico Date: Sat, 17 Oct 2020 05:18:49 -0500 Subject: [PATCH] Enable automatic annotations on GitHub Actions (#497) --- cli-main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli-main.js b/cli-main.js index 18bd5a53..dbf0c26b 100755 --- a/cli-main.js +++ b/cli-main.js @@ -136,7 +136,7 @@ if (typeof options.space === 'string') { } const log = report => { - const reporter = options.reporter ? xo.getFormatter(options.reporter) : formatterPretty; + const reporter = options.reporter || process.env.GITHUB_ACTIONS ? xo.getFormatter(options.reporter || 'compact') : formatterPretty; process.stdout.write(reporter(report.results)); process.exitCode = report.errorCount === 0 ? 0 : 1; };