Skip to content

Commit 183261b

Browse files
committed
Only on main
1 parent 500d451 commit 183261b

File tree

1 file changed

+37
-36
lines changed

1 file changed

+37
-36
lines changed

.azure/pipelines/ci.yml

Lines changed: 37 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -632,42 +632,43 @@ extends:
632632
includeForks: true
633633

634634
# Local development validation
635-
- template: .azure/pipelines/jobs/default-build.yml@self
636-
parameters:
637-
jobName: Local_Windows
638-
jobDisplayName: 'Test: Windows local development validation'
639-
agentOs: Windows
640-
isAzDOTestingJob: true
641-
timeoutInMinutes: 240
642-
steps:
643-
- script: git submodule update --init
644-
displayName: Update submodules
645-
- script: ./restore.cmd
646-
displayName: Run restore.cmd
647-
- powershell: ./eng/build.ps1 -all -noBuildJava -noBuildNodeJS "-WarnAsError:false"
648-
displayName: Build (No NodeJS)
649-
- script: npm run build
650-
displayName: Build JS
651-
- script: ./eng/build.cmd -all -noBuildJava -pack -c Debug
652-
displayName: Build (Debug)
653-
- script: ./eng/build.cmd -all -noBuildJava -pack -c Release
654-
displayName: Build (Release)
655-
- script: ./src/ProjectTemplates/build.cmd
656-
-test
657-
-NoRestore
658-
-NoBuild
659-
-NoBuildDeps
660-
-configuration Release
661-
-bl
662-
displayName: Run project template tests
663-
- powershell: . ./activate.ps1; ./src/ProjectTemplates/scripts/Run-BlazorWeb-Locally.ps1 -Verbose
664-
displayName: Run Blazor web app test script
665-
666-
artifacts:
667-
- name: Local_Windows_x64_Logs_Attempt_$(System.JobAttempt)
668-
path: artifacts/log/
669-
publishOnError: true
670-
includeForks: true
635+
- ${{ if eq(variables['Build.SourceBranch'], 'refs/heads/main') }}:
636+
- template: .azure/pipelines/jobs/default-build.yml@self
637+
parameters:
638+
jobName: Local_Windows
639+
jobDisplayName: 'Test: Windows local development validation'
640+
agentOs: Windows
641+
isAzDOTestingJob: true
642+
timeoutInMinutes: 240
643+
steps:
644+
- script: git submodule update --init
645+
displayName: Update submodules
646+
- script: ./restore.cmd
647+
displayName: Run restore.cmd
648+
- powershell: ./eng/build.ps1 -all -noBuildJava -noBuildNodeJS "-WarnAsError:false"
649+
displayName: Build (No NodeJS)
650+
- script: npm run build
651+
displayName: Build JS
652+
- script: ./eng/build.cmd -all -noBuildJava -pack -c Debug
653+
displayName: Build (Debug)
654+
- script: ./eng/build.cmd -all -noBuildJava -pack -c Release
655+
displayName: Build (Release)
656+
- script: ./src/ProjectTemplates/build.cmd
657+
-test
658+
-NoRestore
659+
-NoBuild
660+
-NoBuildDeps
661+
-configuration Release
662+
-bl
663+
displayName: Run project template tests
664+
- powershell: . ./activate.ps1; ./src/ProjectTemplates/scripts/Run-BlazorWeb-Locally.ps1 -Verbose
665+
displayName: Run Blazor web app test script
666+
667+
artifacts:
668+
- name: Local_Windows_x64_Logs_Attempt_$(System.JobAttempt)
669+
path: artifacts/log/
670+
publishOnError: true
671+
includeForks: true
671672

672673
# Source build
673674
- template: /eng/common/templates-official/job/source-build.yml@self

0 commit comments

Comments
 (0)