From deaf2bca73903adac44e9144bf019aa9a5736701 Mon Sep 17 00:00:00 2001 From: Peter Collins Date: Thu, 22 Feb 2024 11:26:41 -0800 Subject: [PATCH] [ci] Always run the MAUI test job A new $(RunMAUITestJob) variable has been added to control execution of the MAUI integration test job. The value of this variable defaults to true and it provides an easy way to disable the job on servicing/older branches if needed. --- build-tools/automation/azure-pipelines.yaml | 2 +- build-tools/automation/yaml-templates/variables.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build-tools/automation/azure-pipelines.yaml b/build-tools/automation/azure-pipelines.yaml index 7a77f691e7c..611da9535ef 100644 --- a/build-tools/automation/azure-pipelines.yaml +++ b/build-tools/automation/azure-pipelines.yaml @@ -317,7 +317,7 @@ stages: - stage: maui_tests displayName: MAUI Tests dependsOn: mac_build - condition: and(eq(dependencies.mac_build.result, 'Succeeded'), eq(variables['System.PullRequest.TargetBranch'], 'main')) + condition: and(eq(dependencies.mac_build.result, 'Succeeded'), eq(variables['RunMAUITestJob'], 'true')) jobs: # Check - "Xamarin.Android (MAUI Tests MAUI Integration)" - job: maui_tests_integration diff --git a/build-tools/automation/yaml-templates/variables.yaml b/build-tools/automation/yaml-templates/variables.yaml index 07b09b01c8a..13a1f774a18 100644 --- a/build-tools/automation/yaml-templates/variables.yaml +++ b/build-tools/automation/yaml-templates/variables.yaml @@ -52,3 +52,5 @@ variables: value: 34 - name: ExcludedNightlyNUnitCategories value: 'cat != SystemApplication & cat != TimeZoneInfo & cat != Localization' +- name: RunMAUITestJob + value: true