File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6565 - name : Enforce SDK Version
6666 run : dotnet new globaljson --sdk-version ${{ steps.setup-dotnet.outputs.dotnet-version }} --force
6767
68- - name : pre_build
68+ - name : build and analyze
6969 if : matrix.platform.name == 'MacOS'
70- run : ./.sonar/scanner/dotnet-sonarscanner begin /k:"magic5644_codeLineCounter" /o:"magic5644" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml
70+ run : |
71+ dotnet restore
72+ ./.sonar/scanner/dotnet-sonarscanner begin /k:"magic5644_codeLineCounter" /o:"magic5644" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml
73+ dotnet build --no-incremental
74+ dotnet-coverage collect 'dotnet test --no-build' -f xml -o 'coverage.xml'
75+ ./.sonar/scanner/dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
7176
7277 - name : Build
7378 run : dotnet build -c Release
8085 dotnet tool install --global dotnet-reportgenerator-globaltool
8186 reportgenerator -reports:test-result.cobertura.xml -targetdir:coverage-report -reporttypes:"Html;JsonSummary;MarkdownSummaryGithub;Badges"
8287 cat coverage-report/SummaryGithub.md >> $GITHUB_STEP_SUMMARY
83-
84- - name : post_build
85- if : matrix.platform.name == 'MacOS'
86- run : ./.sonar/scanner/dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
8788
88- - name : ReportGenerator
89+ - name : ReportGenerator_CoverageReport
8990 if : matrix.platform.name == 'MacOS'
9091 uses : danielpalme/ReportGenerator-GitHub-Action@5.3.11
9192 with :
You can’t perform that action at this time.
0 commit comments