feat: only jsonld #4
Workflow file for this run
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 JSON-LD and JSON files are valid | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- '**' | |
paths: | |
- '**/jsonld-contexts/**' | |
- '**/ngsild-payloads/**' | |
jobs: | |
check-context-valid-json: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Install jq | |
run: | | |
sudo apt update && sudo apt install jq | |
- name: Check JSON-LD files | |
run: | | |
for file in $(find . -name "*.jsonld"); do | |
printf "Checking $file .. " | |
jq empty $file || exit 1 | |
echo "OK" | |
done || exit 1 | |
shell: bash | |
- name: Check JSON files | |
run: | | |
for file in $(find . -name "*.json"); do | |
printf "Checking $file .. " | |
jq empty $file || exit 1 | |
echo "OK" | |
done || exit 1 | |
shell: bash |