-
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.
feat: Skip execution of the "ValidateCodeFormatting" task when build …
…is running on Azure Pipelines Running dotnet format on Azure Pipelines when using the .NET 9 SDK and Nerdbank.GitVersioning is installed causes the build to hang (see dotnet/sdk#44951). To work around this, skip the task when running on Azure Pipelines and emit a warning about the task being skipped Pull-Request: #142
- Loading branch information
Showing
4 changed files
with
77 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System; | ||
using Cake.Common.Build.AzurePipelines; | ||
using Cake.Common.Build.AzurePipelines.Data; | ||
using Cake.Core.Diagnostics; | ||
|
||
namespace Grynwald.SharedBuild.Test.Mocks | ||
{ | ||
internal class FakeAzurePipelinesContext : IAzurePipelinesContext | ||
{ | ||
public IAzurePipelinesArtifactNames ArtifactNames => throw new NotImplementedException(); | ||
|
||
public bool IsActive | ||
{ | ||
get => IsRunningOnAzurePipelines; | ||
set => IsRunningOnAzurePipelines = value; | ||
} | ||
|
||
public bool IsRunningOnAzurePipelines { get; set; } | ||
|
||
public AzurePipelinesEnvironmentInfo Environment => throw new NotImplementedException(); | ||
|
||
public IAzurePipelinesCommands Commands => throw new NotImplementedException(); | ||
|
||
public void PrintToLog(ICakeLog log) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} | ||
} |
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