name: Validate config files on: pull_request: paths: - "**/*.json" - "**/*.jsonl" - "**/*.yml" - "**/*.yaml" - "scripts/validate_config.py" push: branches: [main] paths: - "**/*.json" - "**/*.jsonl" - "**/*.yml" - "**/*.yaml" permissions: contents: read jobs: validate: runs-on: ubuntu-latest timeout-minutes: 5 steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: "3.12" - name: Install PyYAML run: python -m pip install --disable-pip-version-check pyyaml - name: Validate JSON, JSONL and YAML # Add --exclude patterns for generated or templated files, for example: # python scripts/validate_config.py --exclude "cdk.out/**" --exclude "charts/*/templates/**" run: python scripts/validate_config.py