Skip to content

Commit 89aab15

Browse files
committed
Based on ubuntu
1 parent 65012fa commit 89aab15

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/sonar.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ concurrency:
2828
cancel-in-progress: true
2929
jobs:
3030
sonarcloud:
31-
runs-on: windows-latest
31+
runs-on: ubuntu-latest
3232
permissions:
3333
contents: read
3434
steps:
@@ -65,19 +65,18 @@ jobs:
6565
env:
6666
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
6767
USE_MOCK_SERVER: ${{ vars.USE_MOCK_SERVER }}
68-
shell: powershell
6968
run: |
70-
.\.sonar\scanner\dotnet-sonarscanner begin `
71-
/k:"Tsingis_bitcoin-web-api" `
72-
/o:"tsingis" `
73-
/d:sonar.token="${{ env.SONAR_TOKEN }}" `
74-
/d:sonar.host.url="https://sonarcloud.io" `
75-
/d:sonar.cs.vscoveragexml.reportsPaths="coverage.xml" `
69+
.\.sonar\scanner\dotnet-sonarscanner begin \
70+
/k:"Tsingis_bitcoin-web-api" \
71+
/o:"tsingis" \
72+
/d:sonar.token="${{ env.SONAR_TOKEN }}" \
73+
/d:sonar.host.url="https://sonarcloud.io" \
74+
/d:sonar.cs.vscoveragexml.reportsPaths="coverage.xml" \
7675
/d:sonar.scanner.scanAll=false
7776
7877
dotnet restore --locked-mode
7978
dotnet build --no-restore
8079
dotnet tool run dotnet-coverage collect "dotnet test --no-restore --no-build" -f xml -o "coverage.xml"
8180
82-
.\.sonar\scanner\dotnet-sonarscanner end `
81+
.\.sonar\scanner\dotnet-sonarscanner end \
8382
/d:sonar.token="${{ env.SONAR_TOKEN }}"

0 commit comments

Comments
 (0)