ci: again....
This commit is contained in:
parent
1209dcd38f
commit
af1e69f424
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue