Skip to content

Commit

Permalink
Migrate to SonarCloud
Browse files Browse the repository at this point in the history
  • Loading branch information
vcastellm committed Nov 2, 2023
1 parent 34e08f1 commit 95265ec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 16 deletions.
18 changes: 3 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,10 @@ jobs:
run: echo "test_output=false" >> $GITHUB_OUTPUT

# Triggering SonarQube analysis as results of it are required by Quality Gate check.
- name: SonarQube Scan
- name: SonarCloud Scan
if: ${{ env.HAVE_SONAR_TOKEN == 'true' }}
uses: sonarsource/sonarqube-scan-action@master
uses: SonarSource/sonarcloud-github-action@master
env:
HAVE_SONAR_TOKEN: ${{ secrets.SONAR_TOKEN != '' }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

# Check the Quality Gate status.
- name: SonarQube Quality Gate check
id: sonarqube-quality-gate-check
if: ${{ env.HAVE_SONAR_TOKEN == 'true' }}
uses: sonarsource/sonarqube-quality-gate-action@master
# Force to fail step after specific time.
timeout-minutes: 5
env:
HAVE_SONAR_TOKEN: ${{ secrets.SONAR_TOKEN != '' }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
3 changes: 2 additions & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
sonar.projectKey=polygon-edge
sonar.projectKey=0xPolygon_polygon-edge
sonar.organization=0xpolygon

sonar.sources=.
sonar.exclusions=**/*_test.go,**/vendor/**,**/*.py,**/core-contracts/**,**/tests/**
Expand Down

0 comments on commit 95265ec

Please sign in to comment.