Skip to content

Commit

Permalink
Bail early if not in GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Apr 22, 2021
1 parent 9e83a1b commit 68dfa7e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/unit/config/github-actions-reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ const lineAndColumnInStackTrace = /^.*?:([0-9]+):([0-9]+).*$/;

class GithubActionsReporter {
async onRunComplete( _contexts, _aggregatedResults ) {
if ( ! process.env.GITHUB_ACTIONS ) {
return;
}

if ( ! _aggregatedResults ) {
return;
}
Expand Down

0 comments on commit 68dfa7e

Please sign in to comment.