feat: Add automation for feature flag data schema addition process #4
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: Validate JSON Schemas Syntax | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
paths: | |
- 'jsonschema/**' | |
- 'scripts/**' | |
- '.github/workflows/validate_json_schemas.yaml' | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.13' | |
- name: Install Python requirements.txt Dependencies | |
run: python3 -m pip install -r ./scripts/requirements.txt | |
- name: Download schema specifications | |
run: curl -o ./scripts/jsonschema-org-schema.json https://json-schema.org/draft-04/schema | |
- name: Validate JSON Schema | |
run: python3 ./scripts/validate_json_schemas.py |