46 строки
1.7 KiB
YAML
46 строки
1.7 KiB
YAML
{% metadata_file .yamato/project.metafile %}
|
|
---
|
|
|
|
# Run all relevant tasks when a pull request targets the develop / main or a sample branch
|
|
pull_request_trigger:
|
|
name: DedicatedGameServer Pull Request Trigger (main, develop, & sample branches)
|
|
dependencies:
|
|
{% for project in projects -%}
|
|
{% if project.name =="dedicatedgameserver" -%}
|
|
{% for editor in project.test_editors -%}
|
|
{% for platform in test_platforms -%}
|
|
- .yamato/build.yml#build_{{ project.name }}_{{ editor }}_{{ platform.name }}
|
|
{% if project.run_editor_tests or project.run_playmode_tests -%} # Only run tests for projects where relevant
|
|
- .yamato/tests.yml#test_{{ project.name }}_{{ editor }}_{{ platform.name }}
|
|
{% endif -%}
|
|
{% endfor -%}
|
|
{% endfor -%}
|
|
{% endif -%}
|
|
{% endfor -%}
|
|
triggers:
|
|
cancel_old_ci: true
|
|
expression: |-
|
|
(pull_request.target eq "main" OR
|
|
pull_request.target eq "develop" OR
|
|
pull_request.target match "/^sample\//") AND
|
|
NOT pull_request.draft AND
|
|
pull_request.changes.any match "Experimental/DedicatedGameServer/**/*"
|
|
|
|
# Run all tasks on the bitesize sample develop branch (head) when there is a push to the Netcode for GameObjects develop branch
|
|
external_ngo_develop_pull_request_trigger:
|
|
name: Netcode for GameObjects (External) Develop Branch Triggers
|
|
dependencies:
|
|
{% for project in projects -%}
|
|
{% for editor in project.test_editors -%}
|
|
{% for platform in test_platforms -%}
|
|
- .yamato/build.yml#build_{{ project.name }}_{{ editor }}_{{ platform.name }}
|
|
{% endfor -%}
|
|
{% endfor -%}
|
|
{% endfor -%}
|
|
triggers:
|
|
external:
|
|
source: git@github.com/Unity-Technologies/com.unity.netcode.gameobjects.git
|
|
expression: push.branch eq "develop"
|
|
refs_on_this_repository:
|
|
- develop
|