-
Notifications
You must be signed in to change notification settings - Fork 596
CI: Implement prettier lint #7416
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: Implement prettier lint #7416
Conversation
Signed-off-by: ADITYATIWARI342005 <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7416 +/- ##
==========================================
- Coverage 72.38% 72.37% -0.01%
==========================================
Files 231 231
Lines 34039 34043 +4
==========================================
+ Hits 24639 24640 +1
- Misses 7626 7630 +4
+ Partials 1774 1773 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
… the make target to call prettier instead of go-prettier Signed-off-by: ADITYATIWARI342005 <[email protected]>
…WARI342005/envoyproxy_gateway into implement-prettier-lint
…check-format-yaml target that runs prettier in check mode on tracked YAML files, and update the CI workflow to use the check target Signed-off-by: ADITYATIWARI342005 <[email protected]>
…nstead of ), and modify the GitHub Actions workflow to install prettier with go install and ensure the Go bin path is added Signed-off-by: ADITYATIWARI342005 <[email protected]>
Signed-off-by: ADITYA TIWARI <[email protected]>
Signed-off-by: ADITYA TIWARI <[email protected]>
184f678 to
af2a1ce
Compare
Signed-off-by: ADITYA TIWARI <[email protected]>
af2a1ce to
8b9b1ad
Compare
Signed-off-by: ADITYA TIWARI <[email protected]>
Signed-off-by: ADITYA TIWARI <[email protected]>
|
Hi @zirain Thank you. |
| steps: | ||
| - shell: bash | ||
| run: sudo apt-get install libbtrfs-dev -y | ||
| - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v5.0.1 |
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.
why this changed? I recalled this's required somewhere? two blank spaces before comment.
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 believe it is from the automated prettier-yaml formatting as I do not remember making this change.
…all the correct go-prettier binary using a valid tag by switching to @latest, ensuring the formatter is available during CI Signed-off-by: ADITYATIWARI342005 <[email protected]>
Signed-off-by: ADITYA TIWARI <[email protected]>
… existing composite action Signed-off-by: ADITYA TIWARI <[email protected]>
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's fine to set up a excudle rule for files under this folder.
Signed-off-by: ADITYA TIWARI <[email protected]>
Signed-off-by: ADITYA TIWARI <[email protected]>
@zirain I am confused about the fix, please help me ! Thank you. |
|
Hi @zirain Thank you. |
|
Hi @zirain
Please help me with this. |
.prettierignore
Outdated
| **/.examples/** | ||
| **/test/** | ||
| **/.test/** | ||
| tools/linter/golangci-lint/.golangci.yml |
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.
since we ignore .github/workflow, it's fine to add tools/github_actions
|
@ADITYATIWARI342005 thanks for your patient, can you revert all the changes under |
Signed-off-by: ADITYA TIWARI <[email protected]>
.prettierignore
Outdated
| **/.examples/** | ||
| **/test/** | ||
| **/.test/** | ||
| tools/linter/golangci-lint/.golangci.yml |
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.
why remove the prev value?
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.
Same as other to satisfy gen-check
|
Hi @zirain this was the log on running the lint tool, it failed on these files What should I do for these? |
Signed-off-by: ADITYATIWARI342005 <[email protected]>
| .vscode/ | ||
|
|
||
| # exclude release-notes | ||
| release-notes/* |
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.
can you revert all the changes under release-notes because we excluded them?
…liance Signed-off-by: ADITYA TIWARI <[email protected]>
Signed-off-by: ADITYA TIWARI <[email protected]>
What type of PR is this?
chore: implement go-prettier for yaml files and remove yanllint
What this PR does / why we need it:
removes yamllint and implements go-pretter lint instead of it.
Which issue(s) this PR fixes:
Fixes #7147
Release Notes: Yes/No