From 8a72fed11296c31442b2d608acf0f08f4e0c16e9 Mon Sep 17 00:00:00 2001 From: nkolev92 Date: Thu, 29 Oct 2020 13:04:13 -0700 Subject: [PATCH] Move format check after the tests to allow for the tests to run. --- build/templates/Build_and_UnitTest.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/build/templates/Build_and_UnitTest.yml b/build/templates/Build_and_UnitTest.yml index 7532a868393..a0a00e7f1b5 100644 --- a/build/templates/Build_and_UnitTest.yml +++ b/build/templates/Build_and_UnitTest.yml @@ -87,14 +87,6 @@ steps: dotnet tool restore condition: "and(not(eq(variables['IsOfficialBuild'], 'true')), eq(variables['BuildRTM'], 'true'))" #skip this task for nonRTM in private build -- task: PowerShell@1 - displayName: "Check source file format" - inputs: - scriptType: "inlineScript" - inlineScript: | - dotnet format --check --exclude submodules --verbosity diagnostic - condition: "and(succeeded(), not(eq(variables['IsOfficialBuild'], 'true')), eq(variables['BuildRTM'], 'true'))" #skip this task for nonRTM in private build - - task: MSBuild@1 displayName: "Restore for VS2019" inputs: @@ -186,6 +178,14 @@ steps: publishRunAttachments: "false" condition: "and(succeededOrFailed(),eq(variables['BuildRTM'], 'true'))" +- task: PowerShell@1 + displayName: "Check source file format" + inputs: + scriptType: "inlineScript" + inlineScript: | + dotnet format --check --exclude submodules --verbosity diagnostic + condition: "and(succeededOrFailed(), not(eq(variables['IsOfficialBuild'], 'true')), eq(variables['BuildRTM'], 'true'))" #skip this task for nonRTM in private build + - task: PowerShell@1 displayName: "Initialize Git Commit Status on GitHub" inputs: