Skip to content

Commit 3234cc3

Browse files
committed
Added possibility of usage of /ci ngo
1 parent 66e0fb5 commit 3234cc3

File tree

1 file changed

+27
-24
lines changed

1 file changed

+27
-24
lines changed

.yamato/_triggers.yml

Lines changed: 27 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,40 +2,42 @@
22
---
33

44
# DESCRIPTION--------------------------------------------------------------------------
5-
# This configuration defines three main CI trigger patterns:
6-
# 1. Pull Request Validation: Validation performed on PR basis
7-
# 2. Nightly Development: Test set run nightly (validates most important test cases)
8-
# 3. Weekly Full Validation: Test set run weekly (validates all test cases to prevent any surprises)
9-
# Each pattern represents different balance between validation depth, execution time and CI resource usage
5+
# This configuration defines three main CI trigger patterns:
6+
# 1. Pull Request Validation: Validation performed on PR basis
7+
# 2. Nightly Development: Test set run nightly (validates most important test cases)
8+
# 3. Weekly Full Validation: Test set run weekly (validates all test cases to prevent any surprises)
9+
# Each pattern represents different balance between validation depth, execution time and CI resource usage
1010

1111
# TRIGGER PATTERNS-------------------------------------------------------------------
1212

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

2123
# Nightly:
22-
# This test validates same subset as pull_request_trigger with addition of mobile/console tests and webgl builds
23-
# Runs daily on develop (local configuration)
24-
# Includes all test types but only on trunk.
25-
# Adds platform-specific and APV validation
24+
# This test validates same subset as pull_request_trigger with addition of mobile/console tests and webgl builds
25+
# Runs daily on develop (local configuration)
26+
# Includes all test types but only on trunk.
27+
# Adds platform-specific and APV validation
2628

2729
# Weekly:
28-
# This test validates same subset as develop_nightly but runs per all supported editors as well as executes code coverage test and runs project standards per project
29-
# Runs across all supported editor versions
30-
# Includes code coverage analysis
31-
# Validates all projects and standards
30+
# This test validates same subset as develop_nightly but runs per all supported editors as well as executes code coverage test and runs project standards per project
31+
# Runs across all supported editor versions
32+
# Includes code coverage analysis
33+
# Validates all projects and standards
3234

3335
# CONFIGURATION STRUCTURE--------------------------------------------------------------
34-
# Jobs configurations are generated by ensuring that all dependencies are successful.
35-
# The dependencies are taken from _run-all.yml file where we can gather multiple tests into proper sets
36+
# Jobs configurations are generated by ensuring that all dependencies are successful.
37+
# The dependencies are taken from _run-all.yml file where we can gather multiple tests into proper sets
3638

3739
# QUALITY CONSIDERATIONS---------------------------------------------------------------
38-
# It's important to ensure that all dependencies exist (this can be verified in Yamato) since a modification in parameters may result in a given job not being generated, and thus we will not be able to run such erroneous job.
40+
# It's important to ensure that all dependencies exist (this can be verified in Yamato) since a modification in parameters may result in a given job not being generated, and thus we will not be able to run such erroneous job.
3941

4042

4143
#-----------------------------------------------------------------------------------
@@ -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 trunk on nightly basis.

0 commit comments

Comments
 (0)