[pull] main from alan-turing-institute:main #27
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 and Validate YAML files | |
on: | |
pull_request: | |
paths: | |
- "**.yaml" | |
- "**.yml" | |
push: | |
paths: | |
- "**.yaml" | |
- "**.yml" | |
jobs: | |
yamllint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Setup Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install yamllint via pip | |
run: | | |
python -m pip install yamllint | |
# This command automatically reads in the .yamllint config file | |
- name: Run yamllint on all files in the repo | |
run: | | |
yamllint -f colored . |