Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:

strategy:
fail-fast: false
matrix:
matrix:
include:
- os-name: macos
runner: macos-latest
Expand All @@ -67,8 +67,15 @@ jobs:
shell: pwsh
run: ./build.ps1

- uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
name: Upload coverage to Codecov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2
with:
flags: ${{ matrix.os-name }}
token: ${{ secrets.CODECOV_TOKEN }}

- name: Upload test results to Codecov
uses: codecov/test-results-action@f2dba722c67b86c6caa034178c6e4d35335f6706 # v1.1.0
if: ${{ !cancelled() }}
with:
flags: ${{ matrix.os-name }}
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ bin
Bin
coverage
coverage.*
junit.xml
MSBuild_Logs/
obj
packages
Expand Down
1 change: 1 addition & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<ItemGroup>
<PackageVersion Include="coverlet.msbuild" Version="6.0.4" />
<PackageVersion Include="GitHubActionsTestLogger" Version="2.4.1" />
<PackageVersion Include="JunitXml.TestLogger" Version="6.1.0" />
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="9.0.4" />
<PackageVersion Include="Microsoft.CodeAnalysis.PublicApiAnalyzers" Version="3.3.4" />
<PackageVersion Include="Microsoft.Extensions.Logging" Version="8.0.1" />
Expand Down
6 changes: 3 additions & 3 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ function DotNetTest {

$additionalArgs = @()

if (![string]::IsNullOrEmpty($env:GITHUB_SHA)) {
$additionalArgs += "--logger"
$additionalArgs += "GitHubActions;report-warnings=false"
if (-Not [string]::IsNullOrEmpty($env:GITHUB_SHA)) {
$additionalArgs += "--logger:GitHubActions;report-warnings=false"
$additionalArgs += "--logger:junit;LogFilePath=junit.xml"
}

& $dotnet test --configuration "Release" $additionalArgs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="coverlet.msbuild" />
<PackageReference Include="GitHubActionsTestLogger" NoWarn="RT0003" />
<PackageReference Include="JunitXml.TestLogger" NoWarn="RT0003" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="NSubstitute" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="coverlet.msbuild" />
<PackageReference Include="GitHubActionsTestLogger" NoWarn="RT0003" />
<PackageReference Include="JunitXml.TestLogger" NoWarn="RT0003" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="NSubstitute" />
Expand Down