30 lines
730 B
YAML
30 lines
730 B
YAML
name: Validate CMS configuration
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'config/cms.json'
|
|
- 'config/cms.schema.json'
|
|
- 'scripts/validate_cms_config.py'
|
|
- '.github/workflows/cms-config.yml'
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- 'config/cms.json'
|
|
- 'config/cms.schema.json'
|
|
- 'scripts/validate_cms_config.py'
|
|
|
|
jobs:
|
|
validate:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
- name: Install dependencies
|
|
run: python -m pip install --upgrade pip jsonschema
|
|
- name: Validate cms.json
|
|
run: python scripts/validate_cms_config.py
|