Skip to content

Commit 2f87177

Browse files
authored
Adding variables to code coverage check (#5000)
* Adding variables to code coverage check * Update template-build-and-run-all-tests.yaml * Update template-build-and-run-all-tests.yaml * Update build/template-build-and-run-all-tests.yaml
1 parent 7cadf60 commit 2f87177

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build/template-build-and-run-all-tests.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ jobs: #Build and stage projects
6969
- template: template-desktop-unit-and-automation.yaml
7070

7171
- task: BuildQualityChecks@9
72+
condition: ne(variables['Build.SourceBranch'], 'refs/heads/main') #gate should not run on main branch
7273
inputs:
73-
checkCoverage: true
74+
checkCoverage: '$(CodeCoverageGateEnabled)'
7475
coverageFailOption: 'build'
7576
coverageType: 'lines'
7677
treat0of0as100: true

0 commit comments

Comments
 (0)