JSON Validation #1681
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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 | |
- name: Set up Python | |
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 | |
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 |