Run linter on YAML files #16
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
# Summary: GitHub Actions workflow to run a YAML linter on .yml files. | |
name: YAML file linter | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
paths: | |
- '**.yml' | |
- '**.yaml' | |
push: | |
branches: | |
- main | |
paths: | |
- '**.yml' | |
- '**.yaml' | |
run-name: Run linter on YAML files | |
jobs: | |
Yamllint: | |
name: GitHub YAMLlint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out copy of git repository | |
uses: actions/checkout@v4 | |
- name: Run YAMLlint | |
uses: ibiqlik/[email protected] | |
with: | |
config_file: .yamllint.yml |