Add Göthenburg #58
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 | |
on: [push] | |
jobs: | |
yamlcheck: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
pip install pyyaml | |
- name: check yaml | |
# Apparently, if you do this using "find -exec" in one | |
# command, it does not exit with a failure status. | |
run: | | |
find . -type f \( -name '*.yaml' -o -name '*.yml' \) -print0 | xargs -0 -i python -c "import yaml ; yaml.safe_load(open('{}'))" || exit 1 |