mirror of
https://github.com/TRaSH-Guides/Guides.git
synced 2026-02-11 03:09:16 -06:00
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.
26 lines
588 B
YAML
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
|