Skip to content

Content JSON Validation #3

Content JSON Validation

Content JSON Validation #3

name: Content JSON Validation
on:
pull_request:
branches:
- 'master'
workflow_dispatch:
jobs:
validate-config:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Test load jsons
run: cat content/exams.json
- name: validate exams
uses: ammarlakis/action-ajv@master
with:
schema: schemas/exams.squema.json
data: content/exams.json
allErrors: true
- name: validate questions
uses: ammarlakis/action-ajv@master
with:
schema: schemas/questions.squema.json
data: content/**.json !exams.json
allErrors: true