Skip to content

Commit

Permalink
Updated Sonar pipeline (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjyotagureddy authored Jul 14, 2024
1 parent 194df4f commit d4abef0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,15 @@ jobs:
run: |
New-Item -Path .\.sonar\scanner -ItemType Directory
dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner
- name: Restore Aspire
run: dotnet workload install aspire
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
shell: powershell
run: |
.\.sonar\scanner\dotnet-sonarscanner begin /k:"sanjyotagureddy_dotnet-ecommerce" /o:"sanjyotagureddy" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
dotnet restore dotnet-ecommerce.sln
dotnet build dotnet-ecommerce.sln --no-restore
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"

0 comments on commit d4abef0

Please sign in to comment.