Validates yaml schemas from engine (#10133)
Co-authored-by: Paul Ritter <ritter.paul1@gmail.com>
This commit is contained in:
18
.github/workflows/validate-rgas.yml
vendored
Normal file
18
.github/workflows/validate-rgas.yml
vendored
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
name: YAML schema validator
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
yaml-schema-validation:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Setup Submodule
|
||||||
|
run: git submodule update --init
|
||||||
|
- name: Pull engine updates
|
||||||
|
uses: space-wizards/submodule-dependency@v0.1.5
|
||||||
|
- uses: PaulRitter/yaml-schema-validator@v1
|
||||||
|
with:
|
||||||
|
schema: RobustToolbox/Schemas/rga.yml
|
||||||
|
path_pattern: .*attributions.ya?ml$
|
||||||
|
validators_path: RobustToolbox/Schemas/rga_validators.py
|
||||||
|
validators_requirements: RobustToolbox/Schemas/rga_requirements.txt
|
||||||
6
.github/workflows/validate-rsis.yml
vendored
6
.github/workflows/validate-rsis.yml
vendored
@@ -10,9 +10,13 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- name: Setup Submodule
|
||||||
|
run: git submodule update --init
|
||||||
|
- name: Pull engine updates
|
||||||
|
uses: space-wizards/submodule-dependency@v0.1.5
|
||||||
- name: Parse files
|
- name: Parse files
|
||||||
uses: space-wizards/json-schema-validator@v1.0.2
|
uses: space-wizards/json-schema-validator@v1.0.2
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
json_schema: .github/rsi-schema.json
|
json_schema: RobustToolbox/Schemas/rsi.json
|
||||||
json_path_pattern: .*meta.json$
|
json_path_pattern: .*meta.json$
|
||||||
|
|||||||
18
.github/workflows/validate_mapfiles.yml
vendored
Normal file
18
.github/workflows/validate_mapfiles.yml
vendored
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
name: YAML schema validator
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
yaml-schema-validation:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Setup Submodule
|
||||||
|
run: git submodule update --init
|
||||||
|
- name: Pull engine updates
|
||||||
|
uses: space-wizards/submodule-dependency@v0.1.5
|
||||||
|
- uses: PaulRitter/yaml-schema-validator@v1
|
||||||
|
with:
|
||||||
|
schema: RobustToolbox/Schemas/mapfile.yml
|
||||||
|
path_pattern: .*Resources/Maps/.*
|
||||||
|
validators_path: RobustToolbox/Schemas/mapfile_validators.py
|
||||||
|
validators_requirements: RobustToolbox/Schemas/mapfile_requirements.txt
|
||||||
@@ -4,3 +4,4 @@
|
|||||||
- files: [ "staff_animation.ogg", "staff_change.ogg", "staff_chaos.ogg", "staff_door.ogg", "staff_healing.ogg" ]
|
- files: [ "staff_animation.ogg", "staff_change.ogg", "staff_chaos.ogg", "staff_door.ogg", "staff_healing.ogg" ]
|
||||||
license: "CC-BY-SA-3.0"
|
license: "CC-BY-SA-3.0"
|
||||||
copyright: "https://github.com/tgstation/tgstation/commit/906fb0682bab6a0975b45036001c54f021f58ae7"
|
copyright: "https://github.com/tgstation/tgstation/commit/906fb0682bab6a0975b45036001c54f021f58ae7"
|
||||||
|
source: "https://github.com/tgstation/tgstation/commit/906fb0682bab6a0975b45036001c54f021f58ae7"
|
||||||
Reference in New Issue
Block a user