Skip to content

Commit

Permalink
Validates yaml schemas from engine (#10133)
Browse files Browse the repository at this point in the history
Co-authored-by: Paul Ritter <[email protected]>
  • Loading branch information
PaulRitter and Paul Ritter authored Aug 14, 2022
1 parent ff2c42c commit f69fb1d
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/validate-rgas.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
- 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 changes: 5 additions & 1 deletion .github/workflows/validate-rsis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Submodule
run: git submodule update --init
- name: Pull engine updates
uses: space-wizards/[email protected]
- name: Parse files
uses: space-wizards/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
json_schema: .github/rsi-schema.json
json_schema: RobustToolbox/Schemas/rsi.json
json_path_pattern: .*meta.json$
18 changes: 18 additions & 0 deletions .github/workflows/validate_mapfiles.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
- 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
3 changes: 2 additions & 1 deletion Resources/Audio/Weapons/Guns/Gunshots/Magic/attributions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@

- files: [ "staff_animation.ogg", "staff_change.ogg", "staff_chaos.ogg", "staff_door.ogg", "staff_healing.ogg" ]
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"

0 comments on commit f69fb1d

Please sign in to comment.