Skip to content

Commit 2e04ef9

Browse files
committed
Put back the SonarCloud (AKA Qube) analysis
1 parent 4688956 commit 2e04ef9

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/dotnet.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,18 @@ jobs:
4848
New-Item -Path .\.sonar\scanner -ItemType Directory
4949
dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
5050
51-
# - name: Build and analyze
52-
# env:
53-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54-
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
55-
# shell: powershell
56-
# run: |
57-
# dotnet tool install --global dotnet-coverage
58-
# .\.sonar\scanner\dotnet-sonarscanner begin /k:"astar-development_${{ env.RepositoryName }}" /o:"astar-development" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https:#sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml /d:sonar.scanner.scanAll=false
59-
# dotnet-coverage collect 'dotnet test --filter "FullyQualifiedName!~Acceptance.Tests"' -f xml -o 'coverage.xml'
60-
# dotnet build --configuration Release
61-
# dotnet-coverage collect 'dotnet test --filter "FullyQualifiedName!~Acceptance.Tests"' -f xml -o 'coverage.xml'
62-
# .\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
51+
- name: Build and analyze
52+
env:
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
55+
shell: powershell
56+
run: |
57+
dotnet tool install --global dotnet-coverage
58+
.\.sonar\scanner\dotnet-sonarscanner begin /k:"astar-development_${{ env.RepositoryName }}" /o:"astar-development" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https:#sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml /d:sonar.scanner.scanAll=false
59+
dotnet-coverage collect 'dotnet test --filter "FullyQualifiedName!~Acceptance.Tests"' -f xml -o 'coverage.xml'
60+
dotnet build --configuration Release
61+
dotnet-coverage collect 'dotnet test --filter "FullyQualifiedName!~Acceptance.Tests"' -f xml -o 'coverage.xml'
62+
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
6363
6464
- name: Pack NuGet package
6565
if: github.ref == 'refs/heads/main-not'

0 commit comments

Comments
 (0)