Skip to content

Commit

Permalink
Infer output format from GITHUB_ACTIONS env
Browse files Browse the repository at this point in the history
aka --output-format=github
  • Loading branch information
ro0NL authored Jun 30, 2023
1 parent 086b943 commit 8ed4f94
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Psalm/Internal/Cli/Psalm.php
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,10 @@ private static function findDefaultOutputFormat(): string
return Report::TYPE_PHP_STORM;
}

if ('true' === getenv('GITHUB_ACTIONS')) {
return Report::TYPE_GITHUB_ACTIONS;
}

return Report::TYPE_CONSOLE;
}

Expand Down

0 comments on commit 8ed4f94

Please sign in to comment.