diff --git a/.azure/pipelines/ci-public.yml b/.azure/pipelines/ci-public.yml index f2007f1798dd..132923f57a63 100644 --- a/.azure/pipelines/ci-public.yml +++ b/.azure/pipelines/ci-public.yml @@ -615,43 +615,44 @@ stages: publishOnError: true includeForks: true - # Local development validation - - template: jobs/default-build.yml - parameters: - jobName: Local_Windows - jobDisplayName: 'Test: Windows local development validation' - agentOs: Windows - isAzDOTestingJob: true - timeoutInMinutes: 240 - steps: - - script: git submodule update --init - displayName: Update submodules - - script: ./restore.cmd - displayName: Run restore.cmd - - powershell: ./eng/build.ps1 -all -noBuildJava -noBuildNodeJS "-WarnAsError:false" - displayName: Build (No NodeJS) - - script: npm run build - displayName: Build JS - - script: ./eng/build.cmd -all -noBuildJava -pack -c Debug - displayName: Build (Debug) - - script: ./eng/build.cmd -all -noBuildJava -pack -c Release - displayName: Build (Release) - - script: ./src/ProjectTemplates/build.cmd - -test - -NoRestore - -NoBuild - -NoBuildDeps - -configuration Release - -bl - displayName: Run project template tests - - powershell: . ./activate.ps1; ./src/ProjectTemplates/scripts/Run-BlazorWeb-Locally.ps1 -Verbose - displayName: Run Blazor web app test script - - artifacts: - - name: Local_Windows_x64_Logs_Attempt_$(System.JobAttempt) - path: artifacts/log/ - publishOnError: true - includeForks: true + # Local development validation (skip on PRs) + - ${{ if notIn(variables['Build.Reason'], 'PullRequest') }}: + - template: jobs/default-build.yml + parameters: + jobName: Local_Windows + jobDisplayName: 'Test: Windows local development validation' + agentOs: Windows + isAzDOTestingJob: true + timeoutInMinutes: 240 + steps: + - script: git submodule update --init + displayName: Update submodules + - script: ./restore.cmd + displayName: Run restore.cmd + - powershell: ./eng/build.ps1 -all -noBuildJava -noBuildNodeJS "-WarnAsError:false" + displayName: Build (No NodeJS) + - script: npm run build + displayName: Build JS + - script: ./eng/build.cmd -all -noBuildJava -pack -c Debug + displayName: Build (Debug) + - script: ./eng/build.cmd -all -noBuildJava -pack -c Release + displayName: Build (Release) + - script: ./src/ProjectTemplates/build.cmd + -test + -NoRestore + -NoBuild + -NoBuildDeps + -configuration Release + -bl + displayName: Run project template tests + - powershell: . ./activate.ps1; ./src/ProjectTemplates/scripts/Run-BlazorWeb-Locally.ps1 -Verbose + displayName: Run Blazor web app test script + + artifacts: + - name: Local_Windows_x64_Logs_Attempt_$(System.JobAttempt) + path: artifacts/log/ + publishOnError: true + includeForks: true # Source build - template: /eng/common/templates/job/source-build.yml