diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index afbdebe6..cd313a5c 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -28,7 +28,7 @@ jobs: - name: Setup dotnet-cover run: dotnet tool install --global dotnet-coverage - name: Setup SonarScanner - run: choco install "sonarscanner-msbuild-net46" -y + run: dotnet tool install --global dotnet-sonarscanner - name: Patch version info run: .\PatchVersion.ps1 shell: pwsh @@ -55,12 +55,12 @@ jobs: $branchCommand="/d:sonar.branch.name=$branch" } Write-Host CMDs=$branchCommand - SonarScanner.MSBuild.exe begin /d:"sonar.host.url=https://sonarcloud.io" /o:lg2de /k:lg2de_SimpleAccounting $branchCommand /d:sonar.token=$env:SONAR_TOKEN /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml + dotnet sonarscanner begin /d:"sonar.host.url=https://sonarcloud.io" /o:lg2de /k:lg2de_SimpleAccounting $branchCommand /d:sonar.token=$env:SONAR_TOKEN /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml shell: pwsh - name: Build Debug and Test run: dotnet-coverage collect "dotnet test" -f xml -o "coverage.xml" - name: Complete SonarScanner - run: SonarScanner.MSBuild.exe end /d:sonar.login=${{ secrets.SONAR_TOKEN }} + run: dotnet sonarscanner end /d:sonar.login=${{ secrets.SONAR_TOKEN }} - name: Upload product artifact uses: actions/upload-artifact@v1