Skip to content

Commit f0019fe

Browse files
committed
Corrected initial PR job
1 parent ef4fd76 commit f0019fe

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.yamato/_triggers.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ initial_pull_request_trigger:
4343
dependencies:
4444
# Run fast checks that allow for detection of the simplest issues
4545
- .yamato/_run-all.yml#run_quick_checks
46+
- expression: dependencies.run_quick_checks.status == "success"
47+
dependencies:
48+
# Run all PR trigger tests. This will be executed ONLY IF the run_quick_checks dependency passes.
49+
- .yamato/_triggers.yml#extended_pull_request_trigger
4650
triggers:
4751
cancel_old_ci: true
4852
pull_requests:
@@ -59,8 +63,10 @@ initial_pull_request_trigger:
5963
# This optimization allows to speed up feedback look for any "obvious" errors and save resources.
6064
# THIS JOB WILL NOT RUN IF THE INITIAL JOB FAILS (the one above. For example if the code standards fail)
6165
extended_pull_request_trigger:
62-
name: (EXTENDED) Pull Request Trigger (develop, develop-2.0.0, & release branches)
66+
name: Pull Request Trigger (develop, develop-2.0.0, & release branches)
6367
dependencies:
68+
# Run fast checks that allow for detection of the simplest issues (Needs to be included as dependency to make the expression at the bottom of this job possible)
69+
- .yamato/_triggers.yml#initial_pull_request_trigger
6470
# Run project standards to verify package/default project. This is fine to just run for trunk
6571
- .yamato/project-standards.yml#standards_ubuntu_testproject_trunk
6672
# Run package EditMode and Playmode package tests on trunk
@@ -74,9 +80,6 @@ extended_pull_request_trigger:
7480
# Run standalone test with mixture of parameters to make sure there are no obvious issues with most common platform (for example --fail-on-assert option is not present with package/project tests). We run 2 different combinations with different platform/editor/scripting backend.
7581
- .yamato/desktop-standalone-tests.yml#desktop_standalone_test_testproject_mac_il2cpp_trunk
7682
- .yamato/desktop-standalone-tests.yml#desktop_standalone_test_testproject_win_mono_6000.0
77-
triggers:
78-
expression: dependencies.initial_pull_request_trigger.status == "success"
79-
cancel_old_ci: true
8083

8184

8285
# Run all tests on trunk on nightly basis.

0 commit comments

Comments
 (0)