Skip to content

Commit 7b2abc9

Browse files
committed
Upload coverage report to GitHub
1 parent fd05f94 commit 7b2abc9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ jobs:
5757
with:
5858
name: TestResults-${{ runner.os }}.trx
5959
path: "*.trx"
60+
- name: 📤 Upload coverage report
61+
uses: actions/upload-artifact@v4
62+
with:
63+
name: CoverageReport-${{ runner.os }}
64+
path: coverage
6065
- name: ☂️ Upload coverage report to Codecov
6166
env:
6267
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

tests/Serilog.Formatting.Log4Net.Tests.csproj

Lines changed: 1 addition & 1 deletion
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)