File tree 3 files changed +10
-1
lines changed
test/Serilog.Settings.Configuration.Tests
3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 39
39
shell : pwsh
40
40
run : |
41
41
./Build.ps1
42
+ - name : Upload coverage to codecov
43
+ uses : codecov/codecov-action@v4
44
+ with :
45
+ token : ${{ secrets.CODECOV_TOKEN }}
46
+ files : .coverage/*.opencover.xml
Original file line number Diff line number Diff line change 52
52
53
53
Write-Output " build: Testing project in $test "
54
54
55
- & dotnet test - c Release -- no- build -- no- restore
55
+ & dotnet test - c Release -- no- build -- no- restore - p:CollectCoverage = true - p:CoverletOutputFormat = opencover - p:CoverletOutput = .coverage /
56
56
if ($LASTEXITCODE -ne 0 ) { throw " Testing failed" }
57
57
58
58
Pop-Location
Original file line number Diff line number Diff line change 30
30
<PackageReference Include =" xunit.runner.visualstudio" Version =" 2.8.2" />
31
31
<PackageReference Include =" Shouldly" Version =" 4.2.1" />
32
32
<PackageReference Include =" PublicApiGenerator" Version =" 11.1.0" />
33
+ <PackageReference Include =" coverlet.msbuild" Version =" 6.0.2" >
34
+ <PrivateAssets >all</PrivateAssets >
35
+ <IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
36
+ </PackageReference >
33
37
</ItemGroup >
34
38
35
39
<ItemGroup >
You can’t perform that action at this time.
0 commit comments