Skip to content

Commit

Permalink
Update sonarcloud.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
theslash84 authored Mar 26, 2024
1 parent 6a90f53 commit a99ae41
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v2

- name: Setup .NET Core
- name: Setup .NET 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1' # **Replace with the .NET version used in your Azure Functions project
dotnet-version: '6.0.x' # Ensuring compatibility with .NET 6

- name: Install SonarScanner for .NET
run: dotnet tool install --global dotnet-sonarscanner
Expand All @@ -30,7 +30,10 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: dotnet sonarscanner begin /k:"eziodevio" /o:"eziodevio" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
run: >
dotnet sonarscanner begin /k:"eziodevio" /o:"eziodevio"
/d:sonar.login="${{ secrets.SONAR_TOKEN }}"
/d:sonar.host.url="https://sonarcloud.io"
- name: Build Project
run: dotnet build
Expand Down

0 comments on commit a99ae41

Please sign in to comment.