From 87f98b7deafc8242ff6302a19a33cbefafa8da72 Mon Sep 17 00:00:00 2001 From: adimiko Date: Wed, 14 Feb 2024 17:13:59 +0100 Subject: [PATCH 1/2] save --- .github/workflows/build.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6cb508c..0173adf 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -36,9 +36,6 @@ 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 @@ -46,5 +43,5 @@ jobs: 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 test --collect "Code Coverage" dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}" \ No newline at end of file From cd5f905af867ef401e11ca72d8213f2a050dd493 Mon Sep 17 00:00:00 2001 From: adimiko Date: Wed, 14 Feb 2024 17:22:08 +0100 Subject: [PATCH 2/2] save --- .github/workflows/build.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 0173adf..1765678 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -42,6 +42,7 @@ jobs: 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 test --collect "Code Coverage" + 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