mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-10 03:13:53 +02:00
t2
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -51,8 +51,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
dotnet-version: '8.0.x'
|
dotnet-version: '8.0.x'
|
||||||
|
|
||||||
# - name: 'WireMock.Net.TUnitTests'
|
- name: 'WireMock.Net.TUnitTests'
|
||||||
# run: dotnet test './test/WireMock.Net.TUnitTests/WireMock.Net.TUnitTests.csproj' -c Release
|
run: dotnet test './test/WireMock.Net.TUnitTests/WireMock.Net.TUnitTests.csproj' -c Release
|
||||||
|
|
||||||
- name: 'WireMock.Net.Tests'
|
- name: 'WireMock.Net.Tests'
|
||||||
run: dotnet test './test/WireMock.Net.Tests/WireMock.Net.Tests.csproj' -c Release --framework net8.0
|
run: dotnet test './test/WireMock.Net.Tests/WireMock.Net.Tests.csproj' -c Release --framework net8.0
|
||||||
|
|||||||
@@ -1,12 +1,16 @@
|
|||||||
// Copyright © WireMock.Net
|
// Copyright © WireMock.Net
|
||||||
|
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
|
|
||||||
namespace WireMock.Net.Aspire.Tests.Facts;
|
namespace WireMock.Net.Aspire.Tests.Facts;
|
||||||
|
|
||||||
public sealed class DockerIsRunningInLinuxContainerModeFactAttribute : FactAttribute
|
public sealed class DockerIsRunningInLinuxContainerModeFactAttribute : FactAttribute
|
||||||
{
|
{
|
||||||
private const string SkipReason = "Docker is not running in Linux container mode. Skipping test.";
|
private const string SkipReason = "Docker is not running in Linux container mode. Skipping test.";
|
||||||
|
|
||||||
public DockerIsRunningInLinuxContainerModeFactAttribute()
|
public DockerIsRunningInLinuxContainerModeFactAttribute(
|
||||||
|
[CallerFilePath] string? sourceFilePath = null,
|
||||||
|
[CallerLineNumber] int sourceLineNumber = -1) : base(sourceFilePath, sourceLineNumber)
|
||||||
{
|
{
|
||||||
if (!DockerUtils.IsDockerRunningLinuxContainerMode.Value)
|
if (!DockerUtils.IsDockerRunningLinuxContainerMode.Value)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net10.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
|
|||||||
Reference in New Issue
Block a user