-
-
Notifications
You must be signed in to change notification settings - Fork 231
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
ci: added linting ci in the repo #296
Conversation
I think we can merge this @Relequestual |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this.
I'm not sure about running lint-fix.
What will that do in the context of a GitHub action?
Have you confirmed that it will show any errors? =]
The lint-fix scrip runs a linter with an automatic fix option enabled. In the context of a GitHub Action, running Regarding errors, if the code has any style or syntax errors that can't be automatically fixed, the |
It may fix the code it has, but it won't commit it back to the repo. I don't think having autofix here makes sense. Open to other opinions.
I meant, have you confirmed that when there are linting errors, they are shown in the action output and make the check fail? |
Thanks for pointing that out. You're right; the
I agree that having autofix in this context might not be the best approach.
If there are linting issues , the |
@benjagm There are cases where contributors bypass husky checks somehow. This is why we need to set up a CI pipeline in GitHub Actions for each PR to review whether it has passed the checks or not. This is crucial for the overall stability and safety of the project. I have already discussed in this issue: #340 (comment) This issue and #340 are addressing the same things, but #340 also includes checking for formatting and type checking. |
Fixes #289
follow up to #290
tested locally here