forked from makura-games/project-fire
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 1.08 KB
/
Copy pathvalidate_mapfiles.yml
File metadata and controls
31 lines (29 loc) · 1.08 KB
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
name: Map file schema validator
on:
push:
branches: [ master, staging, stable ]
merge_group:
pull_request:
types: [ opened, reopened, synchronize ]
# Sunrise added start - отменяем устаревший запуск этой проверки для того же PR
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
# Sunrise added end
jobs:
yaml-schema-validation:
name: YAML map schema validator
if: github.actor != 'Sunrise-Bot'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- 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