Skip to content

Commit a9545f0

Browse files
committed
further fix #5
1 parent 1d6f7f8 commit a9545f0

1 file changed

Lines changed: 12 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,16 @@ jobs:
4343
shell: powershell
4444
run: |
4545
dotnet tool install --global dotnet-coverage --version 17.6.4
46-
${{ runner.temp }}\scanner\dotnet-sonarscanner begin /k:"chrdek_QueryablDataCalc" /o:"chrdek" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
46+
47+
& "${{ runner.temp }}\scanner\dotnet-sonarscanner" begin `
48+
/k:"chrdek_QueryablDataCalc" `
49+
/o:"chrdek" `
50+
/d:sonar.login="$env:SONAR_TOKEN" `
51+
/d:sonar.host.url="https://sonarcloud.io"
52+
53+
# restore and build the solution (build the .sln to avoid missing project-path issues)
4754
dotnet restore ./Queryabl.sln
48-
dotnet build .\Queryabl.csproj /t:Rebuild /p:Configuration=Debug
49-
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
55+
dotnet build ./Queryabl.sln /t:Rebuild /p:Configuration=Debug
56+
57+
# use the same scanner executable for end
58+
& "${{ runner.temp }}\scanner\dotnet-sonarscanner" end /d:sonar.login="$env:SONAR_TOKEN"

0 commit comments

Comments
 (0)