diff --git a/.gitea/workflows/server.yaml b/.gitea/workflows/server.yaml index 86d60a0..fcc3cd0 100644 --- a/.gitea/workflows/server.yaml +++ b/.gitea/workflows/server.yaml @@ -36,9 +36,10 @@ jobs: dotnet tool install --global dotnet-sonarscanner dotnet tool install --global dotnet-coverage export PATH="$PATH:$HOME/.dotnet/tools" + export PATH="$PATH:/root/.dotnet/tools" - name: Sonarqube Begin run: | - dotnet-sonarscanner begin /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="${{ secrets.SONAR_HOST_URL }}" + dotnet sonarscanner begin /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="${{ secrets.SONAR_HOST_URL }}" - name: Sonarqube Scan run: | dotnet build Server -c Release @@ -46,4 +47,4 @@ jobs: # dotnet-coverage collect 'dotnet test' -f xml -o 'coverage.xml' - name: Sonarqube End run: | - dotnet-sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}" + dotnet sonarscanner end /d:sonar.login="${{ secrets.SONAR_TOKEN }}"