Skip to content

Commit

Permalink
ci: temporarily disable Sonar as the analyzer is broken
Browse files Browse the repository at this point in the history
  • Loading branch information
mu88 committed May 20, 2024
1 parent d861f1f commit 1f2db4e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/CI_CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ jobs:
distribution: 'zulu'
- name: Restore dependencies
run: dotnet restore ThisIsYourLife.sln
- name: Begin Sonar scan
run: |
dotnet tool install --global dotnet-sonarscanner
dotnet sonarscanner begin /k:mu88_Project28 /o:mu88 /d:sonar.token=${{ secrets.SONAR_TOKEN }} /d:sonar.host.url=https://sonarcloud.io /d:sonar.cs.opencover.reportsPaths=src/Tests/coverage.opencover.xml /s:$GITHUB_WORKSPACE/SonarQube.Analysis.xml
# - name: Begin Sonar scan
# run: |
# dotnet tool install --global dotnet-sonarscanner
# dotnet sonarscanner begin /k:mu88_Project28 /o:mu88 /d:sonar.token=${{ secrets.SONAR_TOKEN }} /d:sonar.host.url=https://sonarcloud.io /d:sonar.cs.opencover.reportsPaths=src/Tests/coverage.opencover.xml /s:$GITHUB_WORKSPACE/SonarQube.Analysis.xml
- name: Build
run: dotnet build --no-restore ThisIsYourLife.sln
- name: Test and collect coverage
run: dotnet test --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
- name: End Sonar scan
run: dotnet sonarscanner end /d:sonar.token=${{ secrets.SONAR_TOKEN }}
# - name: End Sonar scan
# run: dotnet sonarscanner end /d:sonar.token=${{ secrets.SONAR_TOKEN }}
- name: Login to DockerHub
uses: docker/login-action@v3
if: ${{ env.IS_RELEASE == 'true' }}
Expand Down

0 comments on commit 1f2db4e

Please sign in to comment.