feat: Add automation for feature flag data schema addition process #1
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_jsonschemas.yaml' | ||
jobs: | ||
validate: | ||
steps: | ||
Check failure on line 13 in .github/workflows/validate_json_schemas.yaml GitHub Actions / Validate JSON Schemas SyntaxInvalid workflow file
|
||
- 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_schema.py |