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 25, 2024
1 parent 9f690e3 commit 15c57ec
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/sonar_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,23 @@ on:
pull_request:
types: [opened, edited, reopened, synchronize]
workflow_dispatch:

env:
GH_TOKEN: ${{ secrets.GIT_TOKEN_SECRET }}
OWNER: ${{ github.repository_owner }}
REPO: ${{ github.event.repository.name }}
PR_NUMBER: ${{ github.event.number }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
SONAR_HOST_URL: "https://sonarqube.trustly.one"
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_SECRET }}

jobs:
build:
runs-on: macOS-latest

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

- name: Set up Ruby
uses: ruby/setup-ruby@v1
Expand Down Expand Up @@ -48,11 +50,14 @@ jobs:
- name: SonarQube Analysis
run: |
sonar-scanner \
-Dsonar.host.url=https://sonarqube.trustly.one \
-Dsonar.login="${SONAR_TOKEN}" \
-Dsonar.host.url=${SONAR_HOST_URL} \
-Dsonar.login=${SONAR_TOKEN} \
-Dsonar.projectKey="trustly-ios" \
-Dsonar.projectName="trustly-ios" \
-Dsonar.branch.name="${{ github.head_ref }}" \
-Dsonar.pullrequest.base="${{ github.base_ref }}" \
-Dsonar.pullrequest.branch="${{ github.head_ref }}" \
-Dsonar.pullrequest.key="${{ github.event.pull_request.number }}" \
-Dsonar.sources="." \
-Dsonar.exclusions="**/Pods/**,**/Tests/**" \
-Dsonar.verbose=true
File renamed without changes.

0 comments on commit 15c57ec

Please sign in to comment.