validate_mapfiles.yml 853 B

12345678910111213141516171819202122232425
  1. name: Map file schema validator
  2. on:
  3. push:
  4. branches: [ master, staging, stable ]
  5. merge_group:
  6. pull_request:
  7. types: [ opened, reopened, synchronize, ready_for_review ]
  8. jobs:
  9. yaml-schema-validation:
  10. name: YAML map schema validator
  11. if: github.actor != 'PJBot' && github.event.pull_request.draft == false
  12. runs-on: ubuntu-latest
  13. steps:
  14. - uses: actions/checkout@v3.6.0
  15. - name: Setup Submodule
  16. run: git submodule update --init
  17. - name: Pull engine updates
  18. uses: space-wizards/submodule-dependency@v0.1.5
  19. - uses: PaulRitter/yaml-schema-validator@v1
  20. with:
  21. schema: RobustToolbox/Schemas/mapfile.yml
  22. path_pattern: .*Resources/Maps/.*
  23. validators_path: RobustToolbox/Schemas/mapfile_validators.py
  24. validators_requirements: RobustToolbox/Schemas/mapfile_requirements.txt