chore(sonar-cloud.yml): update JDK version to 17

fix(sonar-cloud.yml): fix the name of the sonar token variable
This commit is contained in:
Jean Gatto
2023-08-20 09:32:38 -03:00
parent 6e0ff0cdd7
commit a4902d31d8
+3 -3
View File
@@ -18,10 +18,10 @@ jobs:
runs-on: windows-latest
steps:
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 11
java-version: 17
distribution: "zulu" # Alternative distribution options are available.
- uses: actions/checkout@v3
@@ -56,7 +56,7 @@ jobs:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
shell: powershell
run: |
.\.sonar\scanner\dotnet-sonarscanner begin /k:"ASP.NET-Core-API-CQRS-EVENT-DDD-SOLID" /o:"jeangatto" /d:sonar.login="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
.\.sonar\scanner\dotnet-sonarscanner begin /k:"ASP.NET-Core-API-CQRS-EVENT-DDD-SOLID" /o:"jeangatto" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
dotnet restore
dotnet build --nologo --no-restore
dotnet test --nologo --no-build --no-restore --verbosity Minimal -p:CollectCoverage=true -p:CoverletOutputFormat=opencover -p:CoverletOutput=TestResults/