Skip to content

Commit

Permalink
try msbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
0xor1 committed Dec 5, 2023
1 parent 9490e7d commit e7b8290
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Common.Server.Test/Common.Server.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="6.0.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PackageReference Include="coverlet.msbuild" Version="6.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="CSharpier.MsBuild" Version="0.26.2">
<PrivateAssets>all</PrivateAssets>
Expand Down
4 changes: 2 additions & 2 deletions Common.Shared.Test/Common.Shared.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="6.0.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PackageReference Include="coverlet.msbuild" Version="6.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="CSharpier.MsBuild" Version="0.26.2">
<PrivateAssets>all</PrivateAssets>
Expand Down
8 changes: 4 additions & 4 deletions bin/pre
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ docker-compose -f docker/docker-compose.yml up -d
./bin/wait-for-it -t 60 127.0.0.1:3306 -- echo "mariadb ready"

dotnet build
dotnet test --collect:"XPlat Code Coverage"
dotnet test -p:CollectCoverage="true" -p:CoverletOutputFormat="lcov" -p:Exclude="[*]System.Text.RegularExpressions.Generated.*"

if [ "$1" == "gh-actions" ]; then
curl -L https://coveralls.io/coveralls-linux.tar.gz | tar -xz
./coveralls report */TestResults/*/coverage.cobertura.xml
./coveralls report */coverage.info
else
dotnet tool install -g dotnet-reportgenerator-globaltool
rm -r test_coverage
reportgenerator -reports:"*\TestResults\*\coverage.cobertura.xml " -classfilters:"-System.Text.RegularExpressions.Generated" -targetdir:"test_coverage" -reporttypes:Html
rm -r */TestResults
reportgenerator -reports:"*\coverage.info" -targetdir:"test_coverage" -reporttypes:Html
rm */coverage.info
fi

docker-compose -f docker/docker-compose.yml stop

0 comments on commit e7b8290

Please sign in to comment.