-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
fail_on_error works with lint warnings #62
Comments
I think it's eslint stuff. add name: reviewdog
on: [pull_request]
jobs:
eslint:
name: runner / eslint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: eslint
uses: reviewdog/action-eslint@v1
with:
reporter: github-pr-review
workdir: "app/"
eslint_flags: "--quiet --cache --ext .js,.jsx,.ts,.tsx ."
level: error
fail_on_error: true |
@narrowizard With |
This is the main issue I have with the action also. Eslint only fails the job when errors are reported and it's reasonable to expect (or at least allow) the same behavior from this action. |
Looks like this may be a limitation of Github and they have adding support for it in their backlog: |
Actually It looks like this is already supported:
Here's an example of this being used in the wild: And reviewdog is also using it, but unfortunately it looks like it only checks the total count of annotations when determining the conclusion of the run: It should determine the conclusion based on the highest severity reported. |
Would LOVE this to be merged so it behaves as ESLint would behave locally! |
It appears that this issue has been resolved as of reviewdog v0.14.2. |
Perhaps worth considering changing the default for a new major version? |
I guess it should work only with lint errors. Is it possible to fail only on error?
My
reviewdog.yml
is below.The text was updated successfully, but these errors were encountered: