Created
June 23, 2024 08:28
-
-
Save emmadesilva/36eb140123f7a8140642df415ce1ff5c to your computer and use it in GitHub Desktop.
Simple YAML Linter/Validator Workflow for GitHub Actions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Validate YAML | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| validate-yaml: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Validate YAML file | |
| run: yamllint data.yml |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Blog post: https://tips.desilva.se/posts/simple-yaml-linter-validator-workflow-for-github-actions