File tree Expand file tree Collapse file tree 4 files changed +16
-4
lines changed Expand file tree Collapse file tree 4 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 1+ {
2+ "version" : 1 ,
3+ "isRoot" : true ,
4+ "tools" : {
5+ "dotnet-reportgenerator-globaltool" : {
6+ "version" : " 5.4.16" ,
7+ "commands" : [
8+ " reportgenerator"
9+ ],
10+ "rollForward" : false
11+ }
12+ }
13+ }
Original file line number Diff line number Diff line change 2828 cache : true
2929 cache-dependency-path : " **/packages.lock.json"
3030 - name : Install Report Generator
31- run : dotnet tool install --global dotnet-reportgenerator-globaltool
31+ run : dotnet tool restore
3232 - name : Restore
3333 run : dotnet restore --locked-mode
3434 - name : Build
4141 USE_MOCKING : ${{ vars.USE_MOCKING }}
4242 - name : Find coverage files and generate report
4343 run : |
44- reportgenerator -reports:"${{ github.workspace }}/**/coverage.xml" \
44+ dotnet tool run reportgenerator -reports:"${{ github.workspace }}/**/coverage.xml" \
4545 -targetdir:"coverage-report" \
4646 -reporttypes:MarkdownSummaryGithub
4747 - name : Upload coverage report
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ API documentation
1616Tools used:
1717
1818- .NET SDK
19- - .NET report generator ` dotnet tool install -g dotnet-reportgenerator-globaltool `
2019- Docker
2120- Azure
2221- Terraform
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ $coverageFiles = Get-ChildItem -Path "tests" -Recurse -Filter "coverage.xml"
44
55if ($coverageFiles ) {
66 $reportFiles = ($coverageFiles | ForEach-Object { $_.FullName }) -join " ;"
7- reportgenerator - reports:$reportFiles - targetdir:coveragereport
7+ dotnet tool run reportgenerator - reports:$reportFiles - targetdir:coveragereport
88
99 Start-Process " coveragereport/index.html"
1010} else {
You can’t perform that action at this time.
0 commit comments