Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typespec repository - Upload Manifest file to the new storage account #5336

Merged
merged 4 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions eng/tsp-core/pipelines/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,3 +176,33 @@ extends:
displayName: "Build"
- script: docker push $(imageName) --all-tags
displayName: "Push"

- stage: publish_manifest
displayName: Manifest
dependsOn: build
jobs:
- job: publish_manifest
displayName: Publish Manifest
pool:
name: $(WINDOWSPOOL)
image: $(WINDOWSVMIMAGE)
os: windows
variables:
TYPESPEC_SKIP_DOCUSAURUS_BUILD: true # Disable docusaurus build
steps:
- template: /eng/tsp-core/pipelines/templates/install.yml
- template: /eng/tsp-core/pipelines/templates/build.yml

- script: pnpm run validate-scenarios --debug
displayName: Validate Scenarios

- script: pnpm run validate-mock-apis --debug
displayName: Validate mock apis

- task: AzureCLI@2
displayName: Upload scenario manifest
inputs:
azureSubscription: "TypeSpec Storage"
scriptType: "bash"
scriptLocation: "inlineScript"
inlineScript: "pnpm upload-manifest"
3 changes: 3 additions & 0 deletions packages/spec-dashboard/src/apis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ export async function getCoverageSummaries(): Promise<CoverageSummary[]> {
(manifest: ScenarioManifest) => manifest.setName !== "@azure-tools/azure-http-specs",
)[0];
for (const key in generatorReports["standard"]) {
if (!(generatorReports["standard"] as any)[key]) {
continue;
}
(generatorReports["standard"] as any)[key] = {
...(generatorReports["standard"] as any)[key][0],
generatorMetadata: (generatorReports["standard"] as any)[key]["generatorMetadata"],
Expand Down
Loading