All checks were successful
Caddy Manager CI build / docker (push) Successful in 2m45s
Disable container support for tests and bump the application version to 1.2.1.
58 lines
2.6 KiB
XML
58 lines
2.6 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net10.0</TargetFramework>
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
<IsPackable>false</IsPackable>
|
|
<IsTestProject>true</IsTestProject>
|
|
<!--
|
|
The test SDK makes this project an executable, so a solution wide
|
|
`dotnet publish /t:PublishContainer` containerizes it alongside the web app, pushes both
|
|
to the same repository and tag, and lets the last one to finish win. That shipped an
|
|
image whose entrypoint was the test assembly, which exits 0 without output, so the
|
|
container looked like it started and stopped for no reason.
|
|
The pipelines publish the web app project explicitly; this keeps a solution wide publish
|
|
from ever producing an image from the tests again.
|
|
-->
|
|
<EnableSdkContainerSupport>false</EnableSdkContainerSupport>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="coverlet.collector" Version="10.0.1">
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
<PrivateAssets>all</PrivateAssets>
|
|
</PackageReference>
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<None Include="coverlet.runsettings">
|
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
</None>
|
|
</ItemGroup>
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.8.1" />
|
|
<PackageReference Include="Moq" Version="4.20.72" />
|
|
<PackageReference Include="xunit" Version="2.9.3" />
|
|
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.5">
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
<PrivateAssets>all</PrivateAssets>
|
|
</PackageReference>
|
|
<PackageReference Include="AwesomeAssertions" Version="9.5.0" />
|
|
<PackageReference Include="Microsoft.Extensions.Configuration" Version="10.0.10" />
|
|
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="10.0.10" />
|
|
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="10.0.10" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\CaddyManager.Contracts\CaddyManager.Contracts.csproj" />
|
|
<ProjectReference Include="..\CaddyManager.Services\CaddyManager.Services.csproj" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<Using Include="Xunit" />
|
|
<Using Include="AwesomeAssertions" />
|
|
<Using Include="Moq" />
|
|
</ItemGroup>
|
|
|
|
</Project> |