-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #97 from asam-ev/schema-validation
update validate-json.yaml
- Loading branch information
Showing
1 changed file
with
37 additions
and
37 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,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 | ||
|
||
# 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 |