Skip to content

Commit

Permalink
formatted dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaid authored and Zaid committed Oct 1, 2024
1 parent fc8914e commit 8ee39b7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion specmatic-order-bff-csharp.test/contract/ContractTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ public class ContractTests : IAsyncLifetime
{
private IContainer _stubContainer, _testContainer;

Check warning on line 10 in specmatic-order-bff-csharp.test/contract/ContractTests.cs

View workflow job for this annotation

GitHub Actions / contract-test

Non-nullable field '_stubContainer' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.

Check warning on line 10 in specmatic-order-bff-csharp.test/contract/ContractTests.cs

View workflow job for this annotation

GitHub Actions / contract-test

Non-nullable field '_testContainer' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.

Check warning on line 10 in specmatic-order-bff-csharp.test/contract/ContractTests.cs

View workflow job for this annotation

GitHub Actions / contract-test

Non-nullable field '_stubContainer' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.

Check warning on line 10 in specmatic-order-bff-csharp.test/contract/ContractTests.cs

View workflow job for this annotation

GitHub Actions / contract-test

Non-nullable field '_testContainer' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
private Process _appProcess;

Check warning on line 11 in specmatic-order-bff-csharp.test/contract/ContractTests.cs

View workflow job for this annotation

GitHub Actions / contract-test

Non-nullable field '_appProcess' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.

Check warning on line 11 in specmatic-order-bff-csharp.test/contract/ContractTests.cs

View workflow job for this annotation

GitHub Actions / contract-test

Non-nullable field '_appProcess' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
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";
Expand Down

0 comments on commit 8ee39b7

Please sign in to comment.