From 8ee39b7d46bc3cb2ef6955161a0bf98162ec36de Mon Sep 17 00:00:00 2001 From: Zaid Date: Tue, 1 Oct 2024 20:40:25 +0530 Subject: [PATCH] formatted dotnet.yml --- .github/workflows/dotnet.yml | 7 +++++-- specmatic-order-bff-csharp.test/contract/ContractTests.cs | 3 ++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 9226f87..d5c3bd9 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -11,20 +11,23 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v4 + - name: Setup .NET uses: actions/setup-dotnet@v4 with: dotnet-version: 8.0.x + - name: Restore dependencies run: dotnet restore + - name: Build run: dotnet build --no-restore + - name: Setup Testcontainers Cloud Client uses: atomicjar/testcontainers-cloud-setup-action@v1 with: token: ${{ secrets.TC_CLOUD_TOKEN }} wait: true - - name: Get host IP for Docker (macOS) - run: echo "HOST_IP=$(ifconfig lo0 | grep 'inet ' | awk '{print $2}')" >> $GITHUB_ENV + - name: Test run: dotnet test --no-build --verbosity normal diff --git a/specmatic-order-bff-csharp.test/contract/ContractTests.cs b/specmatic-order-bff-csharp.test/contract/ContractTests.cs index 482ef2f..dabee12 100644 --- a/specmatic-order-bff-csharp.test/contract/ContractTests.cs +++ b/specmatic-order-bff-csharp.test/contract/ContractTests.cs @@ -9,7 +9,8 @@ public class ContractTests : IAsyncLifetime { private IContainer _stubContainer, _testContainer; private Process _appProcess; - private static readonly string Pwd = Directory.GetParent(Directory.GetCurrentDirectory())?.Parent?.Parent?.FullName ?? string.Empty; + private static readonly string Pwd = + Directory.GetParent(Directory.GetCurrentDirectory())?.Parent?.Parent?.FullName ?? string.Empty; private readonly string _projectPath = Directory.GetParent(Pwd)?.FullName ?? string.Empty; private const string ProjectName = "specmatic-order-bff-csharp/specmatic-order-bff-csharp.csproj"; private const string TestContainerDirectory = "/usr/src/app";