This repository has been archived by the owner on Feb 29, 2024. It is now read-only.
Check yaml syntax #1029
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: Check yaml syntax | |
on: | |
push: | |
paths: | |
- '**.yml' | |
- '**.yaml' | |
- .github/workflows/check-yaml-syntax.yml | |
pull_request: | |
paths: | |
- '**.yml' | |
- '**.yaml' | |
- .github/workflows/check-yaml-syntax.yml | |
jobs: | |
check-yaml-syntax: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- run: pip3 install yamllint | |
- run: yamllint --config-file .github/yamllint.yml . |