Closed SimonHarmonicMinor closed 3 years ago
We're seeing the same behaviour here with fail_on_error: true
. The action still passes.
Hi @SimonHarmonicMinor , There are no code issues in the PR you attached (https://github.com/SimonHarmonicMinor/Java-Useful-Utils/actions/runs/954371421) as there is no Java code. Do you have another example maybe?
In the sample PR I see that fail_on_error
option works: https://github.com/nikitasavinov/checkstyle-action/pull/6/files, so I need some help to reproduce
Hi @nikitasavinov . Here it is https://github.com/SimonHarmonicMinor/Java-Useful-Utils/pull/133. The plugin reported an error, but the job finished successfully.
Ok, I see: you need to provide an extra level flag in your build definition:
level: error
In that case all reviewdog messages will become errors and build will fail (reference: https://github.com/reviewdog/reviewdog#exit-codes). Not very obvious, I will update the documentation.
The current default value is info
.
@nikitasavinov thanks, that did work. I think this should be mentioned in README.md
I added yml configuration according to the guideline.
Even that
fail_on_error
is set totrue
, the checkstyle pipeline finishes successfully. Here is the link to PR: SimonHarmonicMinor/Java-Useful-Utils#72