Run yamllint on each PR run and main merge fix #39 #1
This file contains 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 Configs | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
validate-yaml: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Install yamllint | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y yamllint | |
- name: Validate All YAML Files | |
run: | | |
find . -name "*.yaml" -o -name "*.yml" -exec yamllint {} \; |