-
Notifications
You must be signed in to change notification settings - Fork 18
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
Enable yaml checks in CI #39
Conversation
.github/workflows/yaml-checks.yml
Outdated
- name: Validate yamls | ||
run: | | ||
git config --global --add safe.directory '*' | ||
yamllint --strict $(git ls-files "*.yml" "*.yaml" 2> /dev/null || find . -name '*.y*ml') |
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.
This would be good to have in a makefile, or script or wherever currently style checks for this repo are defined. So one can do 'make check' or sth and include this and other checks
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.
But there is not a makefile on this repo!
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 suggest to create one then, like in os-autoinst-common :)
Also you could do the same as what @okurz adds to the Makefile in os-autoinst/os-autoinst-common#49
8cade01
to
b40d5d3
Compare
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.
.github/workflows/yaml-checks.yml
Outdated
- name: Validate yamls | ||
run: | | ||
git config --global --add safe.directory '*' | ||
yamllint --strict $(git ls-files "*.yml" "*.yaml" 2> /dev/null || find . -name '*.y*ml') |
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.
Please use yamllint as already mentioned in the other PR:
https://github.com/os-autoinst/os-autoinst-common/blob/master/.github/workflows/yamllint.yml
You don't need to pass it the list of files, it will by default lint .yml and .yaml
710cdd7
to
62e0d33
Compare
bb5e806
to
2581749
Compare
Signed-off-by: ybonatakis <[email protected]>
2581749
to
da70f49
Compare
No description provided.