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 28, 2024
1 parent bebf91f commit 2b3346b
Showing 1 changed file with 8 additions and 18 deletions.
26 changes: 8 additions & 18 deletions .github/workflows/sonar_analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ jobs:
runs-on: macOS-latest

steps:
- name: Set up Xcode 14
run: sudo xcode-select --switch /Applications/Xcode_14.app/Contents/Developer


- name: Checkout code
uses: actions/checkout@v3
with:
Expand All @@ -33,25 +31,16 @@ jobs:
gem install cocoapods
pod install --project-directory=Example
- name: Install SonarSource Build-Wrapper.
- name: Install Bear
run: |
curl -L -o build-wrapper-macosx-x86.zip https://binaries.sonarsource.com/CommercialBuildWrapper/build-wrapper-macosx-x86.zip
unzip -o build-wrapper-macosx-x86.zip
chmod +x build-wrapper-macosx-x86/build-wrapper-macosx-x86
export PATH=$PATH:$PWD/build-wrapper-macosx-x86
which build-wrapper-linux-x86-64
build-wrapper-macosx-x86 --version
cd build-wrapper-linux-x86
ls -la
brew install bear
- name: Run Build with Build-Wrapper
run: |
# Run the build command with the build-wrapper to capture the build information
./build-wrapper-linux-x86/build-wrapper-linux-x86 --out-dir bw-output \
xcodebuild -workspace Example/TrustlySDK.xcworkspace \
bear -- xcodebuild -workspace Example/TrustlySDK.xcworkspace \
-scheme TrustlySDK-Example \
-configuration Debug \
-destination 'platform=iOS Simulator,name=iPhone 15 Pro'
-destination 'platform=iOS Simulator,name=iPhone 15,OS=17.4' \
build
- name: Install sonar-scanner
run: |
Expand All @@ -72,5 +61,6 @@ jobs:
-Dsonar.language=swift \
-Dsonar.sources="." \
-Dsonar.verbose=true \
-Dsonar.cfamily.build-wrapper-output=bw-output
-Dsonar.cfamily.compile-commands=compile_commands.json

0 comments on commit 2b3346b

Please sign in to comment.