|
11 | 11 | # TRIGGER PATTERNS------------------------------------------------------------------- |
12 | 12 | # Pull Request: |
13 | 13 | # 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 |
19 | 21 |
|
20 | 22 | # Nightly: |
21 | 23 | # 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: |
67 | 69 | # TODO: consider setting up and running tests from Examples/ |
68 | 70 | # TODO: or docs only changes are spelling/link check |
69 | 71 | expression: |- |
70 | | - (pull_request.target eq "develop" OR |
| 72 | + pull_request.comment eq "ngo" OR |
| 73 | + ((pull_request.target eq "develop" OR |
71 | 74 | pull_request.target eq "develop-2.0.0" OR |
72 | 75 | pull_request.target match "release/*") AND |
73 | 76 | NOT pull_request.draft AND |
74 | 77 | (pull_request.changes.any match "com.unity.netcode.gameobjects/**" OR |
75 | | - pull_request.changes.any match "testproject/**") |
| 78 | + pull_request.changes.any match "testproject/**")) |
76 | 79 | cancel_old_ci: true |
77 | 80 |
|
78 | 81 | # Run all tests on 6000.2 (latest supported editor) on nightly basis. |
|
0 commit comments