This repository was archived by the owner on Mar 29, 2026. It is now read-only.
Update validate-data.yml #2
Workflow file for this run
This file contains hidden or 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
| # .github/workflows/validate-data.yml | |
| name: Validate dataset | |
| on: | |
| push: | |
| paths: | |
| - "data/**/*.json" | |
| - ".github/schema/**/*.json" | |
| - ".github/workflows/validate-data.yml" | |
| pull_request: | |
| paths: | |
| - "data/**/*.json" | |
| - ".github/schema/**/*.json" | |
| - ".github/workflows/validate-data.yml" | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| # Use npx to pull AJV + formats | |
| - name: Validate terms.json against schema | |
| run: | | |
| npx -y -p ajv-cli@5 -p ajv@8 -p ajv-formats@3 \ | |
| ajv validate \ | |
| -s .github/schema/terms.schema.json \ | |
| -d data/terms.json \ | |
| -c ajv-formats \ | |
| --spec=draft7 \ | |
| --errors=text |