Skip to content

Commit 1f9414b

Browse files
authored
CHANGE: Skip running functional tests for doc only changes (#2191)
1 parent 7da3aeb commit 1f9414b

File tree

4 files changed

+14
-16
lines changed

4 files changed

+14
-16
lines changed

.yamato/analyze.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ code_analyser:
1717
- upm-ci project test --project-path Tools/CodeAnalyzerTestProject -u 2021.3
1818
triggers:
1919
cancel_old_ci: true
20-
pull_requests:
21-
- targets:
22-
only:
23-
- "develop"
20+
expression: pull_request.(target eq "develop" AND NOT changes.all match "**/*.md")
2421
artifacts:
2522
UTR_Output.zip:
2623
paths:

.yamato/format.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,4 @@ check_formatting:
1212
- perl unity-meta/Tools/Format/format.pl Assets Packages --dry-run
1313
triggers:
1414
cancel_old_ci: true
15-
pull_requests:
16-
- targets:
17-
only:
18-
- "develop"
15+
expression: pull_request.(target eq "develop" AND NOT changes.all match "**/*.md")

.yamato/test-samples.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ test_sample_projects_{{ editor.version }}:
1414
- Editor=.Editor/Unity.app/Contents/MacOS/Unity Method=DryRun sh ExternalSampleProjects/publish.sh
1515
triggers:
1616
cancel_old_ci: true
17-
pull_requests:
18-
- targets:
19-
only:
20-
- "develop"
17+
expression: pull_request.(target eq "develop" AND NOT changes.all match "**/*.md")
2118
artifacts:
2219
UTR_Output.zip:
2320
paths:

.yamato/upm-ci.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,10 +287,17 @@ all_tests:
287287
- .yamato/wrench/promotion-jobs.yml#publish_dry_run_inputsystem
288288
triggers:
289289
cancel_old_ci: true
290-
pull_requests:
291-
- targets:
292-
only:
293-
- "develop"
290+
expression: pull_request.(target eq "develop" AND NOT changes.all match "**/*.md")
291+
292+
tests_for_doc_changes:
293+
name: Tests for Documentation Changes
294+
dependencies:
295+
- .yamato/wrench/validation-jobs.yml#validate_-_inputsystem_-_2021_3_-_windows
296+
- .yamato/wrench/validation-jobs.yml#validate_-_inputsystem_-_6000_0_-_windows
297+
- .yamato/wrench/validation-jobs.yml#validate_-_inputsystem_-_6000_2_-_windows
298+
triggers:
299+
cancel_old_ci: true
300+
expression: pull_request.(target eq "develop" AND changes.all match "**/*.md")
294301

295302
performance_tests_only:
296303
name: All Performance Tests

0 commit comments

Comments
 (0)