Add new project: kudos #99
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: JSON Schema Validation | |
on: | |
pull_request: | |
branches: | |
- '**' | |
paths: | |
- '**/*.json' # Trigger the workflow for any JSON file changes in PRs | |
workflow_dispatch: | |
jobs: | |
validate: | |
name: Validate JSON files | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
ref: main | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
- name: Install JSON Schema Validator and Formats | |
run: | | |
npm install -g ajv-cli ajv-formats | |
- name: Validate JSON files | |
run: | | |
ajv -c ajv-formats validate -s schema.json -d 'data/**/*.json' --strict=false |