|
2 | 2 | --- |
3 | 3 |
|
4 | 4 | # 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 |
10 | 10 |
|
11 | 11 | # TRIGGER PATTERNS------------------------------------------------------------------- |
12 | 12 |
|
13 | 13 | # 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 |
20 | 22 |
|
21 | 23 | # 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 |
26 | 28 |
|
27 | 29 | # 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 |
32 | 34 |
|
33 | 35 | # 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 |
36 | 38 |
|
37 | 39 | # 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. |
39 | 41 |
|
40 | 42 |
|
41 | 43 | #----------------------------------------------------------------------------------- |
@@ -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 trunk on nightly basis. |
|
0 commit comments