mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-15 16:13:30 +01:00
* Fix google protobuf WellKnownTypes: Timestamp and Duration * Fix protobuf Empty * . * small refactor * 006 * fix * policy * --- * <PackageReference Include="ProtoBufJsonConverter" Version="0.7.0" />
24 lines
875 B
C#
24 lines
875 B
C#
// Copyright © WireMock.Net
|
|
|
|
using System;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using Xunit;
|
|
|
|
namespace WireMock.Net.Tests.Facts;
|
|
|
|
[ExcludeFromCodeCoverage]
|
|
public sealed class IgnoreOnContinuousIntegrationFact : FactAttribute
|
|
{
|
|
private const string SkipReason = "Ignore when run via CI/CD";
|
|
private static readonly bool IsContinuousIntegrationAzure = bool.TryParse(Environment.GetEnvironmentVariable("TF_BUILD"), out var isTF) && isTF;
|
|
private static readonly bool IsContinuousIntegrationGithub = bool.TryParse(Environment.GetEnvironmentVariable("GITHUB_ACTIONS"), out var isGH) && isGH;
|
|
private static readonly bool IsContinuousIntegration = IsContinuousIntegrationAzure || IsContinuousIntegrationGithub;
|
|
|
|
public IgnoreOnContinuousIntegrationFact()
|
|
{
|
|
if (IsContinuousIntegration)
|
|
{
|
|
Skip = SkipReason;
|
|
}
|
|
}
|
|
} |