Skip to content

fix: test all file (#3) #28

fix: test all file (#3)

fix: test all file (#3) #28

name: Check JSON-LD contexts are valid JSON
on:
workflow_dispatch:
push:
branches:
- '**'
paths:
- 'jsonld-contexts/**'
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 contexts
run: |
cd jsonld-contexts
error=0
for file in $(find . -name "*.jsonld"); do
printf "Checking $file .. "
jq empty $file && echo "OK" || { error=1; echo "KO invalid JSON"; }
done
exit $error
shell: bash