Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve dotnet test output in pipelines #550

Merged
merged 35 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
459d0c8
ci: test
tnotheis Mar 5, 2024
15f1fd2
test: let test fail
tnotheis Mar 5, 2024
7c66d5f
ci: add missing quote
tnotheis Mar 5, 2024
fbb3960
ci: correct path
tnotheis Mar 5, 2024
561c2d3
chore: install logger in all test projects
tnotheis Mar 5, 2024
53af733
chore: set default formatter for xml
tnotheis Mar 5, 2024
c7fee59
ci: use logger in all dotnet test calls
tnotheis Mar 5, 2024
0a761a3
ci: remove test pipeline
tnotheis Mar 5, 2024
10142c7
test: install logger in remaining projects
tnotheis Mar 5, 2024
2af17a0
test: install logger in remaining projects
tnotheis Mar 5, 2024
860e2a5
test: remove duplicated references to GitHubActionsTestLogger
tnotheis Mar 5, 2024
f371874
ci: convert test script to sh
tnotheis Mar 5, 2024
7a2be78
ci: convert checkFormatting script to sh
tnotheis Mar 5, 2024
460d80f
ci: fix checkFormatting script name
tnotheis Mar 5, 2024
df62569
test: remove intentionally failing test
tnotheis Mar 5, 2024
5b350c5
ci: try to not use logger for postgres integration tests
tnotheis Mar 5, 2024
85dadf7
ci: try to not include passed and skipped tests for sql server integr…
tnotheis Mar 5, 2024
64872ad
ci: make scripts executable
tnotheis Mar 5, 2024
bdbe83c
chore: try to remove everything regarding SpecflowCucumberExporter
tnotheis Mar 5, 2024
07d8e02
Merge branch 'improve-dotnet-test-output' of github.com:nmshd/backbon…
tnotheis Mar 5, 2024
0391c11
chore: remove redundant backtick
tnotheis Mar 5, 2024
14081a1
Revert "ci: try to not include passed and skipped tests for sql serve…
tnotheis Mar 5, 2024
a2d4910
Revert "ci: try to not use logger for postgres integration tests"
tnotheis Mar 5, 2024
e298684
ci: set DOTNET_CONSOLE_ANSI_COLOR for all dotnet test actions
tnotheis Mar 6, 2024
fae8312
ci: use github action to run transport tests
tnotheis Mar 6, 2024
29fbff5
chore: add "--no-build" flag to `dotnet publish` command in AdminCli'…
tnotheis Mar 6, 2024
64442d5
chore: remove "/property:WarningLevel=0" from all commands
tnotheis Mar 6, 2024
b25a129
ci: let test fail
tnotheis Mar 6, 2024
631ad9c
chore: remove publish stage from Admin CLI Dockerfile
tnotheis Mar 6, 2024
5a2b9c5
chore: remove dotnet build from Admin CLI Dockerfile
tnotheis Mar 6, 2024
c976b38
chore: fix compiler warnings
tnotheis Mar 6, 2024
eeae19e
Revert "ci: let test fail"
tnotheis Mar 6, 2024
05aa1b1
Revert "ci: use github action to run transport tests"
tnotheis Mar 6, 2024
5731505
Merge branch 'main' into improve-dotnet-test-output
tnotheis Mar 6, 2024
525a3b7
chore: remove unnecessary using directive
tnotheis Mar 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .ci/checkFormatting.js

This file was deleted.

3 changes: 3 additions & 0 deletions .ci/checkFormatting.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

dotnet format --verify-no-changes
4 changes: 2 additions & 2 deletions .ci/integrationTest.postgres.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dockerCompose down
dockerCompose build
dockerCompose up -d
dotnet restore "Backbone.sln"
dotnet build /property:WarningLevel=0 --no-restore "Backbone.sln"
dotnet build --no-restore "Backbone.sln"
export CONSUMER_API_BASE_ADDRESS="http://localhost:5000"
export ADMIN_API_BASE_ADDRESS="http://localhost:5173"
dotnet test --no-restore --no-build --filter "Category=Integration&TestCategory!~ignore" "Backbone.sln"
dotnet test --no-restore --no-build --filter "Category=Integration&TestCategory!~ignore" --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true" "Backbone.sln"
4 changes: 2 additions & 2 deletions .ci/integrationTest.sqlserver.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dockerCompose down
dockerCompose build
dockerCompose up -d
dotnet restore "Backbone.sln"
dotnet build /property:WarningLevel=0 --no-restore "Backbone.sln"
dotnet build --no-restore "Backbone.sln"
export CONSUMER_API_BASE_ADDRESS="http://localhost:5000"
export ADMIN_API_BASE_ADDRESS="http://localhost:5173"
dotnet test --no-restore --no-build --filter "Category=Integration&TestCategory!~ignore" "Backbone.sln"
dotnet test --no-restore --no-build --filter "Category=Integration&TestCategory!~ignore" --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true" "Backbone.sln"
7 changes: 0 additions & 7 deletions .ci/test.js

This file was deleted.

5 changes: 5 additions & 0 deletions .ci/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

dotnet restore "Backbone.sln"
dotnet build --no-restore "Backbone.sln"
dotnet test --no-restore --no-build --filter "Category!=Integration" --logger "GitHubActions;summary.includePassedTests=true;summary.includeSkippedTests=true" "Backbone.sln"
12 changes: 8 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,22 @@ jobs:
with:
dotnet-version: "8.0.x"
- name: Check formatting
run: ./.ci/checkFormatting.js
run: ./.ci/checkFormatting.sh

test:
runs-on: ubuntu-latest
name: Run Tests
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install script dependencies
run: npm install --prefix ./.ci
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"
- name: Run tests
run: ./.ci/test.js
run: ./.ci/test.sh
env:
DOTNET_CONSOLE_ANSI_COLOR: true

integration-test-sqlserver:
name: Run Integration Tests (on SQL Server)
Expand All @@ -66,6 +66,8 @@ jobs:
with:
name: integration-test-sqlserver-docker-logs
path: docker-log.txt
env:
DOTNET_CONSOLE_ANSI_COLOR: true

integration-test-postgres:
name: Run Integration Tests (on Postgres)
Expand All @@ -86,6 +88,8 @@ jobs:
with:
name: integration-test-postgres-docker-logs
path: docker-log.txt
env:
DOTNET_CONSOLE_ANSI_COLOR: true

transport-test-sqlserver:
name: Run transport Tests (on SQL Server)
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[xml]": {
"editor.defaultFormatter": "DotJoshJohnson.xml"
},
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"files.autoSave": "off",
Expand Down
2 changes: 1 addition & 1 deletion AdminApi/src/AdminApi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ RUN dotnet restore "AdminApi/src/AdminApi/AdminApi.csproj"

COPY . .

RUN dotnet publish /property:WarningLevel=0 /p:UseAppHost=false --no-restore --configuration Release --output /app/publish "/src/AdminApi/src/AdminApi/AdminApi.csproj"
RUN dotnet publish /p:UseAppHost=false --no-restore --configuration Release --output /app/publish "/src/AdminApi/src/AdminApi/AdminApi.csproj"
RUN dotnet publish --configuration Release --output /app/publish/health "HealthCheck/HealthCheck.csproj"

### Final ####
Expand Down
2 changes: 1 addition & 1 deletion AdminApi/src/AdminApi/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ static void ConfigureServices(IServiceCollection services, IConfiguration config
.ConfigureAndValidate<AdminConfiguration>(configuration.Bind)
.ConfigureAndValidate<ApplicationOptions>(options => configuration.GetSection("Modules:Devices:Application").Bind(options));

#pragma warning disable ASP0000 We retrieve the Configuration via IOptions here so that it is validated
#pragma warning disable ASP0000 // We retrieve the Configuration via IOptions here so that it is validated
var parsedConfiguration = services.BuildServiceProvider().GetRequiredService<IOptions<AdminConfiguration>>().Value;

#pragma warning restore ASP0000
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
<PackageReference Include="nunit" Version="4.1.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="GitHubActionsTestLogger" Version="2.3.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
Expand Down
5 changes: 5 additions & 0 deletions Backbone.Tests.ArchUnit/Backbone.Tests.ArchUnit.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
<PackageReference Include="MediatR" Version="12.2.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="TngTech.ArchUnitNET.xUnit" Version="0.10.6" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="GitHubActionsTestLogger" Version="2.3.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
4 changes: 4 additions & 0 deletions BuildingBlocks/src/UnitTestTools/UnitTestTools.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="GitHubActionsTestLogger" Version="2.3.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="FluentValidation" Version="11.9.0" />
<PackageReference Include="MediatR" Version="12.2.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.2" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="GitHubActionsTestLogger" Version="2.3.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="xunit" Version="2.5.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3">
<PrivateAssets>all</PrivateAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="GitHubActionsTestLogger" Version="2.3.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
<PackageReference Include="Autofac.Extensions.DependencyInjection" Version="9.0.0" />
<PackageReference Include="Divergic.Logging.Xunit" Version="4.3.0" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="GitHubActionsTestLogger" Version="2.3.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="Polly" Version="8.3.0" />
<PackageReference Include="xunit" Version="2.7.0" />
Expand Down
4 changes: 4 additions & 0 deletions BuildingBlocks/test/Crypto.Tests/Crypto.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="GitHubActionsTestLogger" Version="2.3.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="GitHubActionsTestLogger" Version="2.3.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="GitHubActionsTestLogger" Version="2.3.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
<PrivateAssets>all</PrivateAssets>
Expand Down
4 changes: 4 additions & 0 deletions BuildingBlocks/test/Tooling.Tests/Tooling.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="GitHubActionsTestLogger" Version="2.3.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="GitHubActionsTestLogger" Version="2.3.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="xunit" Version="2.5.3" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.3">
<PrivateAssets>all</PrivateAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
<PackageReference Include="nunit" Version="4.1.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="GitHubActionsTestLogger" Version="2.3.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion ConsumerApi/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ WORKDIR /src
COPY . .

RUN dotnet restore "ConsumerApi/ConsumerApi.csproj"
RUN dotnet publish /property:WarningLevel=0 --configuration Release --output /app/publish --no-restore "ConsumerApi/ConsumerApi.csproj"
RUN dotnet publish --configuration Release --output /app/publish --no-restore "ConsumerApi/ConsumerApi.csproj"
RUN dotnet publish --configuration Release --output /app/publish/health "HealthCheck/HealthCheck.csproj"

### Final ####
Expand Down
5 changes: 2 additions & 3 deletions ConsumerApi/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,8 @@ static void ConfigureServices(IServiceCollection services, IConfiguration config

services.ConfigureAndValidate<BackboneConfiguration>(configuration.Bind);

#pragma warning disable ASP0000 We retrieve the BackboneConfiguration via IOptions here so that it is validated
var parsedConfiguration =
services.BuildServiceProvider().GetRequiredService<IOptions<BackboneConfiguration>>().Value;
#pragma warning disable ASP0000 // We retrieve the BackboneConfiguration via IOptions here so that it is validated
var parsedConfiguration = services.BuildServiceProvider().GetRequiredService<IOptions<BackboneConfiguration>>().Value;
#pragma warning restore ASP0000
services
.AddCustomAspNetCore(parsedConfiguration, environment)
Expand Down
7 changes: 2 additions & 5 deletions Modules/Devices/src/Devices.AdminCli/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,11 @@ RUN dotnet restore "Modules/Devices/src/Devices.AdminCli/Devices.AdminCli.csproj
COPY . .

WORKDIR "/src/Modules/Devices/src/Devices.AdminCli"
RUN dotnet build /property:UseAppHost=true /property:DebugType=None --no-restore -c Release -o /app/build --self-contained true "Devices.AdminCli.csproj"

FROM build AS publish
RUN dotnet publish "Devices.AdminCli.csproj" --no-restore -c Release -o /app/publish
RUN dotnet publish --no-restore -c Release -o /app/publish "Devices.AdminCli.csproj"

FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish/Backbone.Modules.Devices.AdminCli ./backbone
COPY --from=build /app/publish/Backbone.Modules.Devices.AdminCli ./backbone

ENV PATH="$PATH:/app"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,19 @@
<PackageReference Include="FakeItEasy" Version="8.1.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="GitHubActionsTestLogger" Version="2.3.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\..\BuildingBlocks\src\UnitTestTools\UnitTestTools.csproj" />
<ItemGroup>
<ProjectReference Include="..\..\..\..\BuildingBlocks\src\UnitTestTools\UnitTestTools.csproj" />
<ProjectReference Include="..\..\src\Devices.Application\Devices.Application.csproj" />
<ProjectReference Include="..\..\src\Devices.Infrastructure\Devices.Infrastructure.csproj" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
<ItemGroup>
<PackageReference Include="FakeItEasy" Version="8.1.0" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="GitHubActionsTestLogger" Version="2.3.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
Expand All @@ -20,7 +24,7 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\..\BuildingBlocks\src\UnitTestTools\UnitTestTools.csproj" />
<ProjectReference Include="..\..\src\Devices.Domain\Devices.Domain.csproj" />
<ProjectReference Include="..\..\..\..\BuildingBlocks\src\UnitTestTools\UnitTestTools.csproj" />
<ProjectReference Include="..\..\src\Devices.Domain\Devices.Domain.csproj" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
<PackageReference Include="FakeItEasy" Version="8.1.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="GitHubActionsTestLogger" Version="2.3.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
<PrivateAssets>all</PrivateAssets>
Expand Down
2 changes: 1 addition & 1 deletion Modules/Files/src/Files.Jobs.SanityCheck/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ WORKDIR "/src/Modules/Files/src/Files.Jobs.SanityCheck"
RUN dotnet build "Files.Jobs.SanityCheck.csproj" --configuration Release --output /app/build --no-restore

FROM build AS publish
RUN dotnet publish /property:UseAppHost=false /property:WarningLevel=0 --configuration Release --output /app/publish --no-restore "Files.Jobs.SanityCheck.csproj"
RUN dotnet publish /property:UseAppHost=false --configuration Release --output /app/publish --no-restore "Files.Jobs.SanityCheck.csproj"

FROM base AS final
WORKDIR /app
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="GitHubActionsTestLogger" Version="2.3.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
<PrivateAssets>all</PrivateAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="GitHubActionsTestLogger" Version="2.3.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
<ItemGroup>
<PackageReference Include="FakeItEasy" Version="8.1.0" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="GitHubActionsTestLogger" Version="2.3.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
<ItemGroup>
<PackageReference Include="FakeItEasy" Version="8.1.0" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="GitHubActionsTestLogger" Version="2.3.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
Expand Down
Loading
Loading