Skip to content

Commit

Permalink
Sync eng/common directory with azure-sdk-tools for PR 9732 (Azure#48016)
Browse files Browse the repository at this point in the history
* update emitter template

* hide step if public pr

* update conditions after testing

---------

Co-authored-by: m-nash <[email protected]>
  • Loading branch information
azure-sdk and m-nash authored Jan 29, 2025
1 parent ee493fa commit fe16c3a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions eng/common/pipelines/templates/archetype-typespec-emitter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -447,3 +447,14 @@ extends:
parameters:
artifactName: test_artifacts_$(System.JobName)
artifactPath: $(Build.ArtifactStagingDirectory)

- ${{ if and(eq(variables['System.TeamProject'], 'internal'), ne(variables['Build.Reason'], 'PullRequest')) }}:
- task: AzureCLI@2
displayName: "Upload Spector Standard Coverage Report"
condition: and(ne(variables['SpectorName'], ''), succeeded())
inputs:
azureSubscription: "TypeSpec Storage"
scriptType: "bash"
scriptLocation: "inlineScript"
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
workingDirectory: $(Build.SourcesDirectory)/eng/packages/$(SpectorName)

0 comments on commit fe16c3a

Please sign in to comment.