Skip to content

Commit

Permalink
fix: temp disable sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
etienne-bechara committed Oct 22, 2024
1 parent 91dcfd2 commit 33f6e31
Showing 1 changed file with 39 additions and 39 deletions.
78 changes: 39 additions & 39 deletions .github/workflows/quality_control.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,42 +65,42 @@ jobs:
- name: Run Lint Check
run: pnpm lint

sonar:
name: SonarQube Scan
runs-on: ubuntu-latest
needs: test

steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Download Test Coverage
uses: actions/download-artifact@v3
with:
name: test-coverage

- name: Run SonarQube Scan
uses: sonarsource/sonarcloud-github-action@master
with:
args: >
-Dsonar.organization=${{ github.repository_owner }}
-Dsonar.projectKey=${{ github.event.repository.name }}
-Dsonar.pullrequest.key=${{ github.event.number }}
-Dsonar.pullrequest.branch=${{ github.HEAD_REF }}
-Dsonar.pullrequest.base=${{ github.BASE_REF }}
-Dsonar.sources=source
-Dsonar.tests=source
-Dsonar.test.inclusions=source/**/*.spec.ts
-Dsonar.javascript.lcov.reportPaths=coverage/lcov.info
-Dsonar.testExecutionReportPaths=test-report.xml
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: https://sonarcloud.io

- name: Run SonarQube Quality Gate
if: github.event.repository.name != 'master' && github.event.repository.name != 'beta' && github.event.repository.name != 'alpha'
uses: sonarsource/sonarqube-quality-gate-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# sonar:
# name: SonarQube Scan
# runs-on: ubuntu-latest
# needs: test

# steps:
# - name: Checkout Code
# uses: actions/checkout@v3
# with:
# fetch-depth: 0

# - name: Download Test Coverage
# uses: actions/download-artifact@v3
# with:
# name: test-coverage

# - name: Run SonarQube Scan
# uses: sonarsource/sonarcloud-github-action@master
# with:
# args: >
# -Dsonar.organization=${{ github.repository_owner }}
# -Dsonar.projectKey=${{ github.event.repository.name }}
# -Dsonar.pullrequest.key=${{ github.event.number }}
# -Dsonar.pullrequest.branch=${{ github.HEAD_REF }}
# -Dsonar.pullrequest.base=${{ github.BASE_REF }}
# -Dsonar.sources=source
# -Dsonar.tests=source
# -Dsonar.test.inclusions=source/**/*.spec.ts
# -Dsonar.javascript.lcov.reportPaths=coverage/lcov.info
# -Dsonar.testExecutionReportPaths=test-report.xml
# env:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
# SONAR_HOST_URL: https://sonarcloud.io

# - name: Run SonarQube Quality Gate
# if: github.event.repository.name != 'master' && github.event.repository.name != 'beta' && github.event.repository.name != 'alpha'
# uses: sonarsource/sonarqube-quality-gate-action@master
# env:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 comments on commit 33f6e31

Please sign in to comment.