diff --git a/.github/workflows/config-schema.yml b/.github/workflows/config-schema.yml index 0170ef1c..6a8b8971 100644 --- a/.github/workflows/config-schema.yml +++ b/.github/workflows/config-schema.yml @@ -4,11 +4,15 @@ on: pull_request: paths: - "config-schema.json" + - "config.example.yaml" + - ".github/workflows/config-schema.yml" push: branches: - main paths: - "config-schema.json" + - "config.example.yaml" + - ".github/workflows/config-schema.yml" workflow_dispatch: @@ -39,3 +43,14 @@ jobs: fi echo "✓ config-schema.json is valid" + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.x" + + - name: Install check-jsonschema + run: pip install check-jsonschema + + - name: Validate config.example.yaml against schema + run: check-jsonschema --schemafile config-schema.json config.example.yaml