-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (31 loc) · 1.1 KB
/
validate-json.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Validate JSON schema files
# Source: https://github.com/cardinalby/schema-validator-action
# Forked from: https://github.com/marketplace/actions/schema-validation-action
name: Validate JSON schemas for assets and materials
on:
pull_request:
paths:
- 'examples/**'
- 'schemas/**'
jobs:
validate-github-actions-workflows:
name: JSON schema validation
runs-on: ubuntu-latest
steps:
- name: Checkout files
uses: actions/checkout@v1
- name: Validate asset JSON schemas
uses: cardinalby/schema-validator-action@v3
with:
schema: ./schemas/asset_schema.json
file: ./examples/*.xoma
- name: Validate material JSON schemas
uses: cardinalby/schema-validator-action@v3
with:
schema: ./schemas/material_schema.json
file: ./examples/*.xomp
- name: Validate electromagnetic material properties JSON schemas
uses: cardinalby/schema-validator-action@v3
with:
schema: ./schemas/material_emp_schema.json
file: ./examples/*_emp.xompt