Merge pull request #84 from vdice/bump/trigger-command-0.2.0 #169
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check Plugin Json Schema | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
paths: | |
- "json-schema/current.txt" | |
- "manifests/**" | |
- .github/workflows/schema-check.yaml | |
jobs: | |
test-schema: | |
name: Validate Plugin Manifest with JSON Schema | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install ajv cli | |
run: npm install -g ajv-cli | |
- name: validate JSONs | |
run: | | |
export JSON_SCHEMA_VERSION=$(cat json-schema/version.txt) | |
ajv -s json-schema/spin-plugin-manifest-schema-$JSON_SCHEMA_VERSION.json -d "manifests/*/*.json" --spec=draft2019 |