-
Notifications
You must be signed in to change notification settings - Fork 339
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: add yamllint rules #1666
ci: add yamllint rules #1666
Conversation
@tao12345666333 PTAL, thanks! |
.yamllint.yml
Outdated
empty-values: disable | ||
float-values: disable | ||
hyphens: enable | ||
indentation: disable # default: enable |
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 disabled it?
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.
@tao12345666333 When i enable empty-values
or indentation
options, i find some error in CI action as shown below, then i use https://www.json2yaml.com/convert-yaml-to-json tool to check yaml file it seems valid, so maybe we can disabled it?
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.
@sakulali we should enable these options and fix the format of YAML. Thanks
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.
@sakulali we should enable these options and fix the format of YAML. Thanks
@tao12345666333 , Sorry for delay, when i use https://github.com/google/yamlfmt to fix the format of YAML, there are too much differences vs original files, too much change maybe not good?
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.
don't worry. It doesn't have any real impact on users.
Codecov Report
@@ Coverage Diff @@
## master #1666 +/- ##
==========================================
+ Coverage 41.02% 41.42% +0.40%
==========================================
Files 88 88
Lines 7564 7642 +78
==========================================
+ Hits 3103 3166 +63
- Misses 4101 4112 +11
- Partials 360 364 +4
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
just one question
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.
LGTM
@lingsamuel, @AlinsRan, would you do me a favor to review this pr, thanks! |
Type of change:
fix: #1062
Add
yamllint
rules checksamples/deploy/
directoryWhat this PR does / why we need it:
Pre-submission checklist: