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.
pull/712/head
Robert Dailey 2 years ago
parent 9bce114c97
commit e1d93b248e

@ -0,0 +1,25 @@
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
Loading…
Cancel
Save