Skip to content

Commit

Permalink
Add to test
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielnedersantos committed Nov 26, 2024
1 parent 9f690e3 commit aa68857
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/sonar_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ env:
PR_NUMBER: ${{ github.event.number }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_SECRET }}
SONAR_PROJECT_KEY: "trustly-ios"
SONAR_PROJECT_NAME: "trustly-ios"

jobs:
build:
Expand Down Expand Up @@ -48,11 +50,16 @@ jobs:
- name: SonarQube Analysis
run: |
sonar-scanner \
-Dsonar.host.url=https://sonarqube.trustly.one \
-Dsonar.login="${SONAR_TOKEN}" \
-Dsonar.projectKey="trustly-ios" \
-Dsonar.projectName="trustly-ios" \
-Dsonar.branch.name="${{ github.head_ref }}" \
-Dsonar.host.url=${SONAR_HOST_URL} \
-Dsonar.login=${SONAR_TOKEN} \
-Dsonar.projectKey=${SONAR_PROJECT_KEY} \
-Dsonar.projectName=${SONAR_PROJECT_NAME} \
-Dsonar.pullrequest.base="${{ github.base_ref }}" \
-Dsonar.pullrequest.branch="${{ github.head_ref }}" \
-Dsonar.pullrequest.key="${{ github.event.pull_request.number }}" \
-Dsonar.scm.revision="${{ github.event.pull_request.head.sha }}" \
-Dsonar.sources="." \
-Dsonar.exclusions="**/Pods/**,**/Tests/**" \
-Dsonar.verbose=true
-Dsonar.exclusions="**/Tests/**" \
-Dsonar.verbose=true \
-Dsonar.sourceEncoding=UTF-8 \
-Dsonar.scm.disabled=true

0 comments on commit aa68857

Please sign in to comment.