diff --git a/.github/workflows/dotnet-action-sonar-container-workflow.yml b/.github/workflows/dotnet-action-sonar-container-workflow.yml index 4cb2f36..ad4c160 100644 --- a/.github/workflows/dotnet-action-sonar-container-workflow.yml +++ b/.github/workflows/dotnet-action-sonar-container-workflow.yml @@ -83,16 +83,16 @@ jobs: run: dotnet restore - name: Build, Test, and Analyze - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any. - # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any. + SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} run: | - # ~/.sonar/scanner/dotnet-sonarscanner begin /k:StevenJDH_maven-version-checker /o:stevenjdh /d:sonar.token=$SONAR_TOKEN /d:sonar.host.url="https://sonarcloud.io" \ - # /d:sonar.cs.opencover.reportsPaths="**/TestResults/*/coverage.opencover.xml" /d:sonar.cs.vstest.reportsPaths="**/TestResults/*.trx" /d:sonar.language=cs \ - # /d:sonar.scanner.scanAll=false + ~/.sonar/scanner/dotnet-sonarscanner begin /k:StevenJDH_maven-version-checker /o:stevenjdh /d:sonar.token=$SONAR_TOKEN /d:sonar.host.url="https://sonarcloud.io" \ + /d:sonar.cs.opencover.reportsPaths="**/TestResults/*/coverage.opencover.xml" /d:sonar.cs.vstest.reportsPaths="**/TestResults/*.trx" /d:sonar.language=cs \ + /d:sonar.scanner.scanAll=false dotnet build --configuration Debug --no-restore dotnet test --configuration Debug --no-build --verbosity normal --collect:"XPlat Code Coverage" --logger trx -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover - # ~/.sonar/scanner/dotnet-sonarscanner end /d:sonar.token=$SONAR_TOKEN + ~/.sonar/scanner/dotnet-sonarscanner end /d:sonar.token=$SONAR_TOKEN - name: Set Release Mode id: release