Repository navigation
Publish a pull request under pr/, not beside the branches (#307) #194
Workflow file for this run
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: Check JSON Validity | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| validate-json: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Python3 | |
| uses: actions/setup-python@v5 | |
| - name: Validate JSON files | |
| run: | | |
| set -e | |
| for file in $(find configs/ -type f -name "*.json"); do | |
| echo "Checking $file" | |
| python3 -m json.tool "$file" > /dev/null | |
| done |