Attempt upgrading PublishCodeCoverageResults and quality checks

This commit is contained in:
Daniel Jurek 2023-10-18 16:12:16 -07:00
Родитель 35997913e9
Коммит d1aa91d5ab
1 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -251,14 +251,13 @@ jobs:
displayName: Generate Code Coverage Data
condition: and(succeededOrFailed(), eq(variables['CODE_COVERAGE'], 'enabled'))
- task: PublishCodeCoverageResults@1
- task: PublishCodeCoverageResults@2
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(Build.SourcesDirectory)/**/Cobertura.xml'
displayName: Publish Code Coverage to DevOps
condition: and(succeededOrFailed(), eq(variables['CODE_COVERAGE'], 'enabled'))
- task: mspremier.BuildQualityChecks.QualityChecks-task.BuildQualityChecks@8
- task: mspremier.BuildQualityChecks.QualityChecks-task.BuildQualityChecks@9
displayName: Check line coverage
inputs:
checkCoverage: true
@ -268,7 +267,7 @@ jobs:
coverageThreshold: ${{ parameters.LineCoverageTarget }}
condition: and(succeededOrFailed(), eq(variables['CODE_COVERAGE'], 'enabled'), eq(variables['Skip.LineCoverageEnforcement'], ''))
- task: mspremier.BuildQualityChecks.QualityChecks-task.BuildQualityChecks@8
- task: mspremier.BuildQualityChecks.QualityChecks-task.BuildQualityChecks@9
displayName: Check branch coverage
inputs:
checkCoverage: true