Added logging dependencies.
Some checks failed
ydeng/gameservicewarden/pipeline/head There was a failure building this commit

This commit is contained in:
Harrison Deng 2024-07-20 15:15:08 +00:00
parent 025999ab59
commit a7da520faf
4 changed files with 13 additions and 3 deletions

View File

@ -7,6 +7,8 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3" />

View File

@ -5,6 +5,11 @@
<ProjectReference Include="..\GameServiceWarden.InteractionAPI\GameServiceWarden.InteractionAPI.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
</ItemGroup>
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>

4
Jenkinsfile vendored
View File

@ -9,13 +9,13 @@ pipeline {
stage ("Install") {
steps {
sh "conda update conda -y -q"
sh "conda env update -n base --file environment.yml"
sh "conda env update -n base --file environment.yml -q"
sh "conda run -n base dotnet restore gameservicewarden.sln"
}
}
stage ("Test") {
steps {
sh "conda run -n base dotnet test --logger xunit --no-restore GameServiceWarden.Tests"
sh returnStatus: true, script: 'conda run -n base dotnet test --logger xunit --no-restore gameservicewarden.sln'
xunit([xUnitDotNet(excludesPattern: '', pattern: 'GameServiceWarden.Tests/*.Tests/TestResults/*.xml', stopProcessingIfError: true)])
}
}

View File

@ -3,4 +3,7 @@ channels:
- conda-forge
dependencies:
- dotnet
- icu
- icu
- tar
- zip
- nodejs