ci: again....
Some checks failed
Test if Server can be built / build-server (push) Successful in 26s
Test if Server can be built / sonarqube (push) Failing after 4s

This commit is contained in:
Timothy Schenk 2023-11-01 19:49:37 +01:00
parent 1209dcd38f
commit af1e69f424

View file

@ -20,6 +20,8 @@ jobs:
sonarqube: sonarqube:
needs: build-server needs: build-server
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
PATH: ${{ env.HOME }}/.dotnet/tools:${{ env.PATH }}
if: gitea.ref == 'refs/heads/master' if: gitea.ref == 'refs/heads/master'
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -39,8 +41,7 @@ jobs:
dotnet tool install --global dotnet-coverage dotnet tool install --global dotnet-coverage
- name: Sonarqube Begin - name: Sonarqube Begin
run: | run: |
export PATH="$PATH:/root/.dotnet/tools" dotnet sonarscanner begin /key:"${{ secrets.SONAR_PROJECT_KEY }}" /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 - name: Sonarqube Scan
run: | run: |
dotnet build Server -c Release dotnet build Server -c Release