Content JSON Validation #3
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: 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 |