Merge pull request #28 from openepcis/auto_created_snippets #5
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 JSON | |
| on: | |
| push: | |
| branches: [ main, merge-action ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| validate-json: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Validate JSON files | |
| shell: bash | |
| run: | | |
| echo "Checking JSON and JSON-LD files..." | |
| find . \( -name "*.json" -o -name "*.jsonld" \) -type f -exec python3 -m json.tool {} \; > /dev/null | |
| echo "All JSON and JSON-LD files are valid" |