-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IDP-1772] Display Spectral report in ADO CI build extension
Don't use string length Fix typo fix typo Generate spectral reports in stylish format instead of html Use txt format use pretty Try html and using script Use pretty and stylish Remove references to html Update readme
- Loading branch information
1 parent
b6a0398
commit 8b55e6f
Showing
6 changed files
with
86 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/Workleap.OpenApi.MSBuild/Spectral/AdoCiReportRenderer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
namespace Workleap.OpenApi.MSBuild.Spectral; | ||
|
||
internal sealed class AdoCiReportRenderer : ICiReportRenderer | ||
{ | ||
public async Task AttachReportToBuildAsync(string reportPath) | ||
{ | ||
// Attach the report to the build summary | ||
if (!string.IsNullOrEmpty(Environment.GetEnvironmentVariable("AGENT_NAME"))) | ||
{ | ||
Console.WriteLine("##vso[task.addattachment type=Distributedtask.Core.Summary;name=Spectral results;]{0}", reportPath); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Workleap.OpenApi.MSBuild.Spectral; | ||
|
||
internal interface ICiReportRenderer | ||
{ | ||
public Task AttachReportToBuildAsync(string reportPath); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters