-
Notifications
You must be signed in to change notification settings - Fork 33
Add a soundness check to lint YAML files #13
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
Conversation
|
Next time, let’s try to separate formatting and feature work in separate PRs. This makes it easier to review the changes. |
In preparation for swiftlang/github-workflows#13
a6a8241 to
faf6f28
Compare
.github/workflows/soundness.yml
Outdated
| type: boolean | ||
| description: "Boolean to enable the YAML lint job. Defaults to true." | ||
| default: true | ||
| yamllint_container_image: |
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.
@shahmishal Would you like to have a separate option for the base image of yamllint, spellcheck and flake8? Or should all of this be one single options?
.github/workflows/soundness.yml
Outdated
| container: | ||
| image: ${{ inputs.yamllint_container_image }} |
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 don't think we need a container image at all here we can just run on the runner itself
.github/workflows/soundness.yml
Outdated
| persist-credentials: false | ||
| - name: Run yamllint | ||
| run: | | ||
| apt-get -qq update && apt-get -qq -y install yamllint |
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.
The runner itself comes with yamlint preinstalled so we don't have to install it here
shahmishal
left a 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.
LGTM!
|
@FranzBusch, please feel free to merge it once you’ve reviewed it. |
No description provided.