File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 44
44
- name : 🏗 Build solution
45
45
run : dotnet build --no-restore
46
46
- name : 🧪 Run tests
47
- run : dotnet test --no-build
47
+ run : dotnet test --no-build -p:ReportGeneratorLicense=${{ secrets.REPORTGENERATOR_LICENSE }}
48
48
- name : 📤 Upload received files from failing tests
49
49
uses : actions/upload-artifact@v4
50
50
if : failure()
57
57
with :
58
58
name : TestResults-${{ runner.os }}.trx
59
59
path : " *.trx"
60
+ - name : 📤 Upload coverage report
61
+ if : matrix.os == 'ubuntu-latest'
62
+ uses : actions/upload-artifact@v4
63
+ with :
64
+ name : Coverage Report
65
+ path : coverage
60
66
- name : ☂️ Upload coverage report to Codecov
61
67
env :
62
68
CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change 39
39
<ItemGroup >
40
40
<CoverageReport Include =" $(VSTestResultsDirectory)/*/coverage.cobertura.xml" />
41
41
</ItemGroup >
42
- <ReportGenerator ReportFiles =" @(CoverageReport)" TargetDirectory =" $(CoverageReportDirectory)" ReportTypes =" Html ;TextSummary" />
42
+ <ReportGenerator ReportFiles =" @(CoverageReport)" TargetDirectory =" $(CoverageReportDirectory)" ReportTypes =" HtmlInline ;TextSummary" License = " $(ReportGeneratorLicense) " />
43
43
</Target >
44
44
45
45
<!-- Because of https://github.com/microsoft/vstest/issues/2378 -->
You can’t perform that action at this time.
0 commit comments