feat: add yaml linter #4
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
--- # Run yamllint on all YAML files in the repository | |
name: Yamllint | |
'on': | |
pull_request: | |
paths: | |
- '**/*.yml' | |
- '.github/**' | |
workflow_dispatch: | |
branches: | |
- '**' | |
jobs: | |
yamllint-check: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install yamllint | |
run: sudo apt-get install yamllint=1.26.3-1 | |
- name: Run yamllint | |
run: > | |
yamllint | |
--format github | |
-d "{extends: default, rules: {line-length: {max: 120}, truthy: {check-keys: false}}}" | |
.github |