From 0e419f5c74bf7d08d7a4e9d3c3af5c8b7b69fa04 Mon Sep 17 00:00:00 2001 From: Matias Pequeno Date: Fri, 9 Feb 2024 17:27:50 -0300 Subject: [PATCH] Trying to fix sonar --- .github/workflows/masterCI.yml | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/.github/workflows/masterCI.yml b/.github/workflows/masterCI.yml index 3c01da60..02ab47e1 100644 --- a/.github/workflows/masterCI.yml +++ b/.github/workflows/masterCI.yml @@ -9,16 +9,18 @@ on: jobs: build: runs-on: macos-latest + env: + BUILD_WRAPPER_OUT_DIR: DerivedData/compilation-database steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Create DerivedData folder run: mkdir DerivedData - - name: Create DerivedData/compilation-database folder + - name: Create ${{ env.BUILD_WRAPPER_OUT_DIR }} folder working-directory: DerivedData run: mkdir compilation-database @@ -38,22 +40,17 @@ jobs: working-directory: RollbarAUL run: swift build -v + - name: Install sonar-scanner and build-wrapper + uses: SonarSource/sonarcloud-github-c-cpp@v2 + - name: SonarCloud RollbarCommon - run: - SonarCloud/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir DerivedData/compilation-database - xcodebuild - -workspace RollbarSDK.xcworkspace - -scheme RollbarCommon - -derivedDataPath DerivedData - -enableCodeCoverage YES - build - test - CODE_SIGN_IDENTITY="-" - CODE_SIGNING_REQUIRED=NO + run: | + build-wrapper-macosx-x86 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} xcodebuild -workspace RollbarSDK.xcworkspace -scheme RollbarCommon -derivedDataPath DerivedData -enableCodeCoverage YES build test CODE_SIGN_IDENTITY="-" CODE_SIGNING_REQUIRED=NO - name: SonarCloud RollbarDeploys run: - SonarCloud/build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir DerivedData/compilation-database + SonarCloud/build-wrapper-macosx-x86/build-wrapper-macosx-x86 + --out-dir DerivedData/compilation-database xcodebuild -workspace RollbarSDK.xcworkspace -scheme RollbarDeploys