Skip to content

Commit fe16c3a

Browse files
azure-sdkm-nash
andauthored
Sync eng/common directory with azure-sdk-tools for PR 9732 (Azure#48016)
* update emitter template * hide step if public pr * update conditions after testing --------- Co-authored-by: m-nash <[email protected]>
1 parent ee493fa commit fe16c3a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

eng/common/pipelines/templates/archetype-typespec-emitter.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -447,3 +447,14 @@ extends:
447447
parameters:
448448
artifactName: test_artifacts_$(System.JobName)
449449
artifactPath: $(Build.ArtifactStagingDirectory)
450+
451+
- ${{ if and(eq(variables['System.TeamProject'], 'internal'), ne(variables['Build.Reason'], 'PullRequest')) }}:
452+
- task: AzureCLI@2
453+
displayName: "Upload Spector Standard Coverage Report"
454+
condition: and(ne(variables['SpectorName'], ''), succeeded())
455+
inputs:
456+
azureSubscription: "TypeSpec Storage"
457+
scriptType: "bash"
458+
scriptLocation: "inlineScript"
459+
inlineScript: npx tsp-spector upload-coverage --coverageFile $(Build.ArtifactStagingDirectory)/tsp-spector-coverage-azure.json --generatorName @azure-typespec/$(SpectorName) --storageAccountName typespec --containerName coverages --generatorVersion $(node -p -e "require('./package.json').version") --generatorMode azure
460+
workingDirectory: $(Build.SourcesDirectory)/eng/packages/$(SpectorName)

0 commit comments

Comments
 (0)