Skip to content

Commit 5a50c31

Browse files
committed
modify trigger to match against ONLY package or testproject changes
1 parent bbaae77 commit 5a50c31

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.yamato/_triggers.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,13 @@ pull_request_trigger:
7777
- .yamato/desktop-standalone-tests.yml#desktop_standalone_test_testproject_win_il2cpp_6000.0
7878
- .yamato/cmb-service-standalone-tests.yml#cmb_service_standalone_test_testproject_ubuntu_il2cpp_trunk
7979
triggers:
80+
# Note that PR tests will run ONLY if we are changing package/sample code. If changes are let's say docs only no tests will be triggered
81+
# TODO: consider setting up and running tests from Examples/
82+
# TODO: or docs only changes are spelling/link check
8083
expression: |-
8184
pull_request.comment eq "ngo" AND
82-
NOT pull_request.changes.all match "**/Documentation~/**"
85+
(pull_request.changes.any match "com.unity.netcode.gameobjects/**" OR
86+
pull_request.changes.any match "testproject/**")
8387
cancel_old_ci: true
8488

8589
# Run all tests on trunk on nightly basis.

0 commit comments

Comments
 (0)