From 2b3346b3a9a4af735a2305fd3faaa40dd5ad0bd8 Mon Sep 17 00:00:00 2001 From: Gabriel Santos Date: Thu, 28 Nov 2024 16:10:40 -0300 Subject: [PATCH] Add to test --- .github/workflows/sonar_analysis.yml | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/.github/workflows/sonar_analysis.yml b/.github/workflows/sonar_analysis.yml index c3f4830..fe2861d 100644 --- a/.github/workflows/sonar_analysis.yml +++ b/.github/workflows/sonar_analysis.yml @@ -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: @@ -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: | @@ -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 +