-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (41 loc) · 1.51 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
38
39
40
41
42
43
44
45
46
47
48
49
# 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 mapping JSON schemas
uses: cardinalby/schema-validator-action@v3
with:
schema: ./schemas/mapping_schema.json
file: ./examples/*.xomm
- 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
- name: Validate brdf JSON schemas
uses: cardinalby/schema-validator-action@v3
with:
schema: ./schemas/material_brdf_schema.json
file: ./examples/*_brdf.xompt