mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
29 lines
1 KiB
YAML
29 lines
1 KiB
YAML
name: Map file schema validator
|
|
on:
|
|
push:
|
|
branches: [ master, staging, stable ]
|
|
merge_group:
|
|
pull_request:
|
|
types: [ opened, reopened, synchronize, ready_for_review ]
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: ${{ github.event_name != 'merge_group' }}
|
|
|
|
jobs:
|
|
yaml-schema-validation:
|
|
name: YAML map schema validator
|
|
if: github.actor != 'PJBot' && github.event.pull_request.draft == false
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- 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
|