Skip to content

Commit

Permalink
Enable automatic annotations on GitHub Actions (#497)
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Oct 17, 2020
1 parent a5ff341 commit ba547e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli-main.js
Expand Up @@ -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;
};
Expand Down

0 comments on commit ba547e7

Please sign in to comment.