JSON Validation #1590
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 Validation | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
schedule: | |
- cron: "0 4 * * *" | |
jobs: | |
validation: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | |
- name: Set up Python | |
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f | |
with: | |
python-version: "3.11" | |
- name: Install dependencies (Common) | |
run: | | |
pip install check-jsonschema | |
- name: Validate JSON file | |
run: | | |
check-jsonschema --schemafile cpu/microarchitectures_schema.json cpu/microarchitectures.json | |
check-jsonschema --schemafile cpu/cpuid_schema.json cpu/cpuid.json |