Skip to content

Commit e114d8b

Browse files
committed
Added possibility of usage of /ci ngo
1 parent 5554c2a commit e114d8b

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.yamato/_triggers.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111
# TRIGGER PATTERNS-------------------------------------------------------------------
1212
# Pull Request:
1313
# This test validates Standards, Package tests, Project tests and Desktop standalone tests to ensure that main platforms are covered
14-
# Triggers on PRs to develop, develop, and release branches
15-
# Focuses on critical validation paths that we should validate before merging PRs
16-
# Cancels previous runs on new commits
17-
# Excludes draft PRs
18-
# Excludes running when changes are not touching package or testproject code (e.g. docs only changes)
14+
# Focuses on critical validation paths that we should validate before merging PRs. It also cancels previous runs on new commits
15+
# By default it's triggered if
16+
# 1) PR targets develop, develop-2.0.0 or release branches
17+
# 2) PR is not a draft
18+
# 3) PR changes files in package or testproject folders (doesn't run on for example DOCS only changes)
19+
20+
# Note that in other cases you can trigger it by writing a comment "/ci ngo" in the PR thread
1921

2022
# Nightly:
2123
# This test validates same subset as pull_request_trigger with addition of mobile/console tests and webgl builds
@@ -67,12 +69,13 @@ pull_request_trigger:
6769
# TODO: consider setting up and running tests from Examples/
6870
# TODO: or docs only changes are spelling/link check
6971
expression: |-
70-
(pull_request.target eq "develop" OR
72+
pull_request.comment eq "ngo" OR
73+
((pull_request.target eq "develop" OR
7174
pull_request.target eq "develop-2.0.0" OR
7275
pull_request.target match "release/*") AND
7376
NOT pull_request.draft AND
7477
(pull_request.changes.any match "com.unity.netcode.gameobjects/**" OR
75-
pull_request.changes.any match "testproject/**")
78+
pull_request.changes.any match "testproject/**"))
7679
cancel_old_ci: true
7780

7881
# Run all tests on 6000.2 (latest supported editor) on nightly basis.

0 commit comments

Comments
 (0)