ci: add buildifier github action #11
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: Lint YAML files | |
on: # yamllint disable-line rule:truthy | |
pull_request: | |
paths: ['**/*.yml', '**/*.yaml'] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install yamllint | |
run: | | |
python -m pip install --upgrade pip | |
pip install yamllint | |
- name: Lint YAML files | |
run: |- | |
yamllint . || exit 1 |