Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor output parsing #97

Merged
merged 4 commits into from
Nov 3, 2022
Merged

Refactor output parsing #97

merged 4 commits into from
Nov 3, 2022

Conversation

jbergstroem
Copy link
Owner

@jbergstroem jbergstroem commented Nov 3, 2022

Changes so far:

  • update license
  • use problem matchers to catch annotations
  • condition output based on runner environment
  • simplify test suite
  • always output info (useful for debugging a run in github workflows)
  • support passing custom version to action
  • output more debug variables
  • refactor github workflows

Todo:

  • split out commits
  • improve documentation
  • tests for custom version
  • move version download to bash (not sure about this one)

Elsewhere (set up as part of landing this):

  • switch to renovatebot
  • prepare release

Fixes: #88
Fixes: #78
Closes: #3

Instead of parsing JSON output from hadolint, we now read `-f tty`. This removes the depency of `jq`.
Also, refactor how output buffers are managed, making it more suitable for both reviewing
github workflows manually as well as how output variables are set (also, avoiding the now deprecated
`::set-output` in favor of `$GITHUB_OUTPUT`.
This makes it easier to konw what version you're running in programatically
@jbergstroem jbergstroem marked this pull request as ready for review November 3, 2022 12:09
@jbergstroem jbergstroem merged commit aed0be7 into main Nov 3, 2022
@jbergstroem jbergstroem deleted the feat/problem-matcher branch November 3, 2022 12:09
@jbergstroem jbergstroem changed the title wip: refactor! Refactor output parsing Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant