added more items #56
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
| name: Validate data | |
| on: | |
| push: | |
| paths: | |
| - 'data/**' | |
| - 'schema/**' | |
| - 'scripts/validate.js' | |
| - 'scripts/render.js' | |
| pull_request: | |
| paths: | |
| - 'data/**' | |
| - 'schema/**' | |
| - 'scripts/**' | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - run: npm install js-yaml ajv ajv-formats marked | |
| - name: Validate schema + vocab + duplicates | |
| run: node scripts/validate.js | |
| - name: Dry-render README to ensure generator works | |
| run: node scripts/render.js > /tmp/regen-README.md | |
| - name: Export JSON index | |
| run: node scripts/export-data.js /tmp/data.json |