diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6cb508c..1765678 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -36,15 +36,13 @@ jobs: - name: Install SonarCloud scanner run: dotnet tool install --global dotnet-sonarscanner - - name: Install dotnet coverage - run: dotnet tool install --global dotnet-coverage - - name: Build and analyze env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} run: | dotnet-sonarscanner begin /k:"adimiko_transactioncontext" /o:"adimiko" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" - dotnet build --no-incremental - dotnet-coverage collect "dotnet test" -f xml -o "coverage.xml" + dotnet restore + dotnet build --no-restore --configuration Release + dotnet test --no-restore --configuration Release --collect:"XPlat Code Coverage;Format=opencover" dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}" \ No newline at end of file