add schema validation workflow using ajv and provide wrapper script in new /_scripts folder

This commit is contained in:
René Helmke committed 2024-03-26 16:28:59 +01:00
1 parent ee94b484c5
commit 3390fbf84c
7 files changed
+844

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
name: validate-schema
on:
push:
branches:
- "main"
workflow_dispatch: {}
jobs:
validate-schema:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPOSITORY: ${{ github.repository }}
BRANCH_NAME: ${{ github.ref_name }}
- name: Install dependencies
run: npm install -g ajv-cli && npm install -g ajv-formats
- name: Run json schema validation via ajv
run: bash _scripts/validate_schema-v2.0.bash
shell: bash