Skip to content
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

Merged
merged 1 commit into from
Feb 14, 2024
Merged

Enable yaml checks in CI #39

merged 1 commit into from
Feb 14, 2024

Conversation

b10n1k
Copy link
Contributor

@b10n1k b10n1k commented Feb 12, 2024

No description provided.

- name: Validate yamls
run: |
git config --global --add safe.directory '*'
yamllint --strict $(git ls-files "*.yml" "*.yaml" 2> /dev/null || find . -name '*.y*ml')
Copy link
Member

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

Copy link
Contributor Author

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!

Copy link
Contributor

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

Copy link
Member

@okurz okurz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

- name: Validate yamls
run: |
git config --global --add safe.directory '*'
yamllint --strict $(git ls-files "*.yml" "*.yaml" 2> /dev/null || find . -name '*.y*ml')
Copy link
Contributor

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

@b10n1k b10n1k force-pushed the add_yaml_check branch 2 times, most recently from 710cdd7 to 62e0d33 Compare February 12, 2024 15:42
@b10n1k b10n1k force-pushed the add_yaml_check branch 5 times, most recently from bb5e806 to 2581749 Compare February 13, 2024 22:44
Signed-off-by: ybonatakis <[email protected]>
@okurz okurz merged commit e21cf1f into os-autoinst:main Feb 14, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants