Signed-off-by: Kingthorin <kingthorin@users.noreply.github.com>main
parent
987703e68d
commit
b40433f97a
@ -1,27 +0,0 @@
|
|||||||
name: JSON Schema Check
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
paths:
|
|
||||||
- 'src/apps.json'
|
|
||||||
- 'schema.json'
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
schema-check:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
CI: true
|
|
||||||
steps:
|
|
||||||
- name: Setup Action
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
- name: Setup Node
|
|
||||||
uses: actions/setup-node@v1
|
|
||||||
with:
|
|
||||||
node-version: 13.x
|
|
||||||
- name: Install dependencies
|
|
||||||
run: npm install -g ajv-cli
|
|
||||||
- name: Run schema check
|
|
||||||
run: |
|
|
||||||
ajv validate -s schema.json -d src/apps.json --all-errors --error-data-path=property
|
|
Loading…
Reference in new issue