ci: add JSON validator workflow #1
This file contains hidden or 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: Validate templates | |
on: | |
push: | |
branches: [ '**' ] | |
pull_request: | |
branches: [ '**' ] | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Run validator (non-strict) | |
id: validate | |
run: | | |
python tools/validate_templates.py | tee validation_report.txt | |
continue-on-error: true | |
- name: Upload validation report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: validation-report | |
path: validation_report.txt | |