Skip to content

Commit ef4fd76

Browse files
committed
First try with INITIAL and EXTENDED PR job
1 parent f066223 commit ef4fd76

File tree

1 file changed

+28
-21
lines changed

1 file changed

+28
-21
lines changed

.yamato/_triggers.yml

Lines changed: 28 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -38,29 +38,11 @@
3838

3939
#-----------------------------------------------------------------------------------
4040

41-
# Run all relevant tasks when a pull request targeting the develop or release branch is created or updated.
42-
# In order to have better coverage we run desktop standalone tests with different configurations which allows to mostly cover for different platforms, scripting backends and editor versions.
43-
# This job will FIRST run "run_quick_checks" jobs (defined in _run-all.yml) which runs the fastest checks (like PVP or code standards) and ONLY IF those pass it will run the rest of the tests.
44-
# This optimization allows to speed up feedback look for any "obvious" errors and save resources.
45-
pull_request_trigger:
46-
name: Pull Request Trigger (develop, develop-2.0.0, & release branches)
41+
initial_pull_request_trigger:
42+
name: (INITIAL) Pull Request Trigger (develop, develop-2.0.0, & release branches)
4743
dependencies:
44+
# Run fast checks that allow for detection of the simplest issues
4845
- .yamato/_run-all.yml#run_quick_checks
49-
- expression: dependencies.run_quick_checks.status == "success"
50-
dependencies:
51-
# Run project standards to verify package/default project. This is fine to just run for trunk
52-
- .yamato/project-standards.yml#standards_ubuntu_testproject_trunk
53-
# Run package EditMode and Playmode package tests on trunk
54-
- .yamato/_run-all.yml#run_all_package_tests_trunk
55-
# Run package EditMode and Playmode package tests on minimum supported editor (6000.0 in case of NGOv2.X)
56-
- .yamato/_run-all.yml#run_all_package_tests_6000
57-
# Run project EditMode and PLaymode project tests on trunk
58-
- .yamato/_run-all.yml#run_all_project_tests_trunk
59-
# Run project EditMode and PLaymode project tests on minimum supported editor (6000.0 in case of NGOv2.X)
60-
- .yamato/_run-all.yml#run_all_project_tests_6000
61-
# 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.
62-
- .yamato/desktop-standalone-tests.yml#desktop_standalone_test_testproject_mac_il2cpp_trunk
63-
- .yamato/desktop-standalone-tests.yml#desktop_standalone_test_testproject_win_mono_6000.0
6446
triggers:
6547
cancel_old_ci: true
6648
pull_requests:
@@ -71,6 +53,31 @@ pull_request_trigger:
7153
- "/release\/.*/"
7254
- drafts: false
7355

56+
# Run all relevant tasks when a pull request targeting the develop or release branch is created or updated.
57+
# In order to have better coverage we run desktop standalone tests with different configurations which allows to mostly cover for different platforms, scripting backends and editor versions.
58+
# This job will FIRST run "run_quick_checks" jobs (defined in _run-all.yml) which runs the fastest checks (like PVP or code standards) and ONLY IF those pass it will run the rest of the tests.
59+
# This optimization allows to speed up feedback look for any "obvious" errors and save resources.
60+
# THIS JOB WILL NOT RUN IF THE INITIAL JOB FAILS (the one above. For example if the code standards fail)
61+
extended_pull_request_trigger:
62+
name: (EXTENDED) Pull Request Trigger (develop, develop-2.0.0, & release branches)
63+
dependencies:
64+
# Run project standards to verify package/default project. This is fine to just run for trunk
65+
- .yamato/project-standards.yml#standards_ubuntu_testproject_trunk
66+
# Run package EditMode and Playmode package tests on trunk
67+
- .yamato/_run-all.yml#run_all_package_tests_trunk
68+
# Run package EditMode and Playmode package tests on minimum supported editor (6000.0 in case of NGOv2.X)
69+
- .yamato/_run-all.yml#run_all_package_tests_6000
70+
# Run project EditMode and PLaymode project tests on trunk
71+
- .yamato/_run-all.yml#run_all_project_tests_trunk
72+
# Run project EditMode and PLaymode project tests on minimum supported editor (6000.0 in case of NGOv2.X)
73+
- .yamato/_run-all.yml#run_all_project_tests_6000
74+
# 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.
75+
- .yamato/desktop-standalone-tests.yml#desktop_standalone_test_testproject_mac_il2cpp_trunk
76+
- .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
80+
7481

7582
# Run all tests on trunk on nightly basis.
7683
# Same subset as pull_request_trigger with addition of mobile/desktop/console tests and webgl builds

0 commit comments

Comments
 (0)