Files
Guides/.github/workflows/metadata-validation.yml
Robert Dailey e1d93b248e ci: Validation workflow for metadata.json
The goal of this pipeline is to assist in catching issues with changes
made to `metadata.json`. This will be especially useful to have during
pull requests, where changes can be validated before they are merged,
which will avoid breaking any tooling that depends on the
`metadata.json` file.
2022-08-15 10:19:44 -05:00

26 lines
588 B
YAML

name: Validate Metadata JSON
on:
push:
paths:
- metadata.json
- metadata.schema.json
- .github/workflows/metadata-validation.yml
pull_request:
paths:
- metadata.json
- metadata.schema.json
- .github/workflows/metadata-validation.yml
jobs:
validate:
runs-on: ubuntu-latest
name: Validate metadata.json
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- run: pip install jsonschema
- run: jsonschema -i metadata.json metadata.schema.json