-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (30 loc) · 1.05 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/nhalstead/validate-json-action
# Forked from: https://github.com/marketplace/actions/validate-json
name: Validate JSON schemas for assets and materials
on:
pull_request:
paths:
- 'examples/**'
- 'schemas/**'
jobs:
json-schema-validation:
name: JSON schema validation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Validate asset JSON schemas
uses: nhalstead/[email protected]
with:
schema: ./schemas/asset_schema.json
jsons: ./examples/*.xoma
- name: Validate material JSON schemas
uses: nhalstead/[email protected]
with:
schema: ./schemas/material_schema.json
jsons: ./examples/*.xomp
- name: Validate electromagnetic material properties JSON schemas
uses: nhalstead/[email protected]
with:
schema: ./schemas/material_emp_schema.json
jsons: ./examples/*_emp.xompt