Skip to content

Commit 691b85b

Browse files
committed
Upload coverage report to GitHub
1 parent 432f87a commit 691b85b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/continuous-integration.yml

+7
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ env:
88
DOTNET_CLI_TELEMETRY_OPTOUT: true
99
DOTNET_NOLOGO: true
1010
DOTNET_SYSTEM_CONSOLE_ALLOW_ANSI_COLOR_REDIRECTION: true
11+
REPORTGENERATOR_LICENSE: ${{ secrets.REPORTGENERATOR_LICENSE }}
1112
TERM: xterm
1213

1314
jobs:
@@ -57,6 +58,12 @@ jobs:
5758
with:
5859
name: TestResults-${{ runner.os }}.trx
5960
path: "*.trx"
61+
- name: 📤 Upload coverage report
62+
if: matrix.os == 'ubuntu-latest'
63+
uses: actions/upload-artifact@v4
64+
with:
65+
name: Coverage Report
66+
path: coverage
6067
- name: ☂️ Upload coverage report to Codecov
6168
env:
6269
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

tests/Serilog.Formatting.Log4Net.Tests.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<ItemGroup>
4040
<CoverageReport Include="$(VSTestResultsDirectory)/*/coverage.cobertura.xml" />
4141
</ItemGroup>
42-
<ReportGenerator ReportFiles="@(CoverageReport)" TargetDirectory="$(CoverageReportDirectory)" ReportTypes="Html;TextSummary" />
42+
<ReportGenerator ReportFiles="@(CoverageReport)" TargetDirectory="$(CoverageReportDirectory)" ReportTypes="HtmlInline;TextSummary" />
4343
</Target>
4444

4545
<!-- Because of https://github.com/microsoft/vstest/issues/2378 -->

0 commit comments

Comments
 (0)