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 d063a82 commit 6fe569a
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/sonar_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,6 @@ jobs:
with:
fetch-depth: 0

- name: Install Build Wrapper
run: |
curl -o build-wrapper.zip -L https://sonarqube.trustly.one/static/cpp/build-wrapper-macosx-x86.zip
unzip build-wrapper.zip
ls -l build-wrapper-macosx-x86
- name: Run Build Wrapper
run: |
./build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir bw-output xcodebuild clean build
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
Expand All @@ -44,10 +34,16 @@ jobs:
gem install cocoapods
pod install --project-directory=Example
- name: Generate Compilation Database
run: |
xcodebuild clean build | xcpretty -r json-compilation-database -o compile_commands.json
env:
PATH: "${PATH}:$(gem environment gemdir)/bin"

- name: List files
run: ls -la Example
run: ls -la

- name: Test
- name: Run Tests
run: |
xcodebuild -workspace Example/TrustlySDK.xcworkspace \
-scheme TrustlySDK-Example \
Expand All @@ -70,9 +66,8 @@ jobs:
-Dsonar.pullrequest.branch="${{ github.head_ref }}" \
-Dsonar.pullrequest.key="${{ github.event.pull_request.number }}" \
-Dsonar.scm.revision="${{ github.event.pull_request.head.sha }}" \
-Dsonar.cfamily.build-wrapper-output=bw-output \
-Dsonar.cfamily.compile-commands=compile_commands.json \
-Dsonar.sources="." \
-Dsonar.exclusions="**/Tests/**" \
-Dsonar.verbose=true \
-Dsonar.sourceEncoding=UTF-8 \
-Dsonar.scm.disabled=true
-Dsonar.sourceEncoding=UTF-8

0 comments on commit 6fe569a

Please sign in to comment.