File tree Expand file tree Collapse file tree 6 files changed +17
-6
lines changed Expand file tree Collapse file tree 6 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 41
41
42
42
strategy :
43
43
fail-fast : false
44
- matrix :
44
+ matrix :
45
45
include :
46
46
- os-name : macos
47
47
runner : macos-latest
67
67
shell : pwsh
68
68
run : ./build.ps1
69
69
70
- - uses : codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
71
- name : Upload coverage to Codecov
70
+ - name : Upload coverage to Codecov
71
+ uses : codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
72
+ with :
73
+ flags : ${{ matrix.os-name }}
74
+ token : ${{ secrets.CODECOV_TOKEN }}
75
+
76
+ - name : Upload test results to Codecov
77
+ uses : codecov/test-results-action@f2dba722c67b86c6caa034178c6e4d35335f6706 # v1.1.0
78
+ if : ${{ !cancelled() }}
72
79
with :
73
80
flags : ${{ matrix.os-name }}
74
81
token : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 13
13
Bin
14
14
coverage
15
15
coverage. *
16
+ junit.xml
16
17
MSBuild_Logs /
17
18
obj
18
19
packages
Original file line number Diff line number Diff line change 7
7
<ItemGroup >
8
8
<PackageVersion Include =" coverlet.msbuild" Version =" 6.0.4" />
9
9
<PackageVersion Include =" GitHubActionsTestLogger" Version =" 2.4.1" />
10
+ <PackageVersion Include =" JunitXml.TestLogger" Version =" 6.1.0" />
10
11
<PackageVersion Include =" Microsoft.AspNetCore.Mvc.Testing" Version =" 9.0.4" />
11
12
<PackageVersion Include =" Microsoft.CodeAnalysis.PublicApiAnalyzers" Version =" 3.3.4" />
12
13
<PackageVersion Include =" Microsoft.Extensions.Logging" Version =" 8.0.1" />
Original file line number Diff line number Diff line change @@ -89,9 +89,9 @@ function DotNetTest {
89
89
90
90
$additionalArgs = @ ()
91
91
92
- if (! [string ]::IsNullOrEmpty($env: GITHUB_SHA )) {
93
- $additionalArgs += " --logger"
94
- $additionalArgs += " GitHubActions;report-warnings=false "
92
+ if (-Not [string ]::IsNullOrEmpty($env: GITHUB_SHA )) {
93
+ $additionalArgs += " --logger:GitHubActions;report-warnings=false "
94
+ $additionalArgs += " --logger:junit;LogFilePath=junit.xml "
95
95
}
96
96
97
97
& $dotnet test -- configuration " Release" $additionalArgs
Original file line number Diff line number Diff line change 18
18
<FrameworkReference Include =" Microsoft.AspNetCore.App" />
19
19
<PackageReference Include =" coverlet.msbuild" />
20
20
<PackageReference Include =" GitHubActionsTestLogger" NoWarn =" RT0003" />
21
+ <PackageReference Include =" JunitXml.TestLogger" NoWarn =" RT0003" />
21
22
<PackageReference Include =" Microsoft.AspNetCore.Mvc.Testing" />
22
23
<PackageReference Include =" Microsoft.NET.Test.Sdk" />
23
24
<PackageReference Include =" NSubstitute" />
Original file line number Diff line number Diff line change 20
20
<FrameworkReference Include =" Microsoft.AspNetCore.App" />
21
21
<PackageReference Include =" coverlet.msbuild" />
22
22
<PackageReference Include =" GitHubActionsTestLogger" NoWarn =" RT0003" />
23
+ <PackageReference Include =" JunitXml.TestLogger" NoWarn =" RT0003" />
23
24
<PackageReference Include =" Microsoft.AspNetCore.Mvc.Testing" />
24
25
<PackageReference Include =" Microsoft.NET.Test.Sdk" />
25
26
<PackageReference Include =" NSubstitute" />
You can’t perform that action at this time.
0 commit comments