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
chore: Lint eco system error #4275
Conversation
If you wish to test the workflow file locally, you can use https://github.com/nektos/act (But this might be irrelevant to #4265) After installing it, you can run it using |
Users do not look at the CI output, so a comment (only for failures) or the code annotation would be great! |
…y into lint-eco-system-error
@Eomm if my code aint' broke this should work, and is there anyway to not have to re-run this (I've used act but just not the same, especially when leaving comments) 😄 |
An annotation would be ideal. Bot comments can be really noisy. |
@jsumners we can do annotations if you think thats the best route (I re-pushed with the comment version for now). The issue with the bot comments is every push builds new one (maybe) dealt with on TF repos where each new |
I don't know what this means. |
tl:dr I overshared... bot comments are super noisey. I'll switch to annotations if I can get some time this weekend.
The reason I know bot comments are noisey....
I experienced this first hand with an action I wrote for "terraform" aka every |
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.
@@ -1,12 +1,6 @@ | |||
name: Lint Ecosystem Order | |||
|
|||
on: | |||
push: |
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.
Whi this has been changed?
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.
It wasn't clear on the intent, as the previous version should run on every branch push
not named main
/ master
which would mean it will run outside of a PR and 2x on a PR (push
+ pull_request
). In the current version it only runs on PRs (which I believe is the desired state).
In addition, the script will only work on PRs. If we want to support PRs and not PRs, I need to tweak the script to run differently depending on the context & we should probably have 2 workflows.
I also wouldn't understand if its not running on main/master why we'd ever believe its not running on a PR....
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.
@jsumners hey what was intent behind push
and pull_request
trigger?
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.
I think in past, che pull_request
event was not triggered when new commits where push
ed to the PR's branch.
Thanks for the clarification
I think it is good with this lighter setup
cc/ @Fdawgs
@@ -1,12 +1,6 @@ | |||
name: Lint Ecosystem Order | |||
|
|||
on: | |||
push: |
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.
I think in past, che pull_request
event was not triggered when new commits where push
ed to the PR's branch.
Thanks for the clarification
I think it is good with this lighter setup
cc/ @Fdawgs
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.
Looks good to me.
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Overview
Added annotations + summary output for the Linting GHA. See examples of outputs below:
Summary Sample
Annotations Sample
Checklist
npm run test
andnpm run benchmark
and the Code of conduct