From 8dcecf42a0278dc597c71016700131f6fb09f5f8 Mon Sep 17 00:00:00 2001 From: Jared McFarland Date: Wed, 29 Jan 2025 15:46:31 -0800 Subject: [PATCH] update iOS workflow --- .github/workflows/iOS.yml | 47 ++++++++++++++++++++++++++------------- 1 file changed, 31 insertions(+), 16 deletions(-) diff --git a/.github/workflows/iOS.yml b/.github/workflows/iOS.yml index 5809d2d6..fec518ac 100644 --- a/.github/workflows/iOS.yml +++ b/.github/workflows/iOS.yml @@ -11,21 +11,36 @@ jobs: runs-on: macos-latest strategy: matrix: - destination: ['name="iPhone 14 Pro",OS=latest'] + destination: ['platform=iOS Simulator,name=iPhone 14 Pro,OS=latest'] steps: - - uses: actions/checkout@v2 - - name: Run Test - working-directory: MixpanelDemo - run: | - set -o pipefail - xcodebuild -scheme MixpanelDemo -derivedDataPath Build/ -destination ${{ matrix.destination }} -configuration Debug ONLY_ACTIVE_ARCH=NO ENABLE_TESTABILITY=YES -enableCodeCoverage YES clean build test | xcpretty -c; - - name: Pod Lint - run: | - gem install cocoapods - pod lib lint --allow-warnings - - name: Code Coverage Report - working-directory: MixpanelDemo/build/Logs/Test - run: | - xcrun xccov view --report --files-for-target Mixpanel.framework *.xcresult - xcrun xccov view --report --only-targets *.xcresult + - uses: actions/checkout@v2 + + - name: Run Test + working-directory: MixpanelDemo + run: | + set -o pipefail + xcodebuild \ + -scheme MixpanelDemo \ + -derivedDataPath Build/ \ + -sdk iphonesimulator \ + -destination "${{ matrix.destination }}" \ + -configuration Debug \ + ONLY_ACTIVE_ARCH=NO \ + ENABLE_TESTABILITY=YES \ + CODE_SIGN_IDENTITY="" \ + CODE_SIGNING_REQUIRED=NO \ + CODE_SIGNING_ALLOWED=NO \ + -enableCodeCoverage YES \ + clean build test | xcpretty -c; + + - name: Pod Lint + run: | + gem install cocoapods + pod lib lint --allow-warnings + + - name: Code Coverage Report + working-directory: MixpanelDemo/build/Logs/Test + run: | + xcrun xccov view --report --files-for-target Mixpanel.framework *.xcresult + xcrun xccov view --report --only-targets *.xcresult \ No newline at end of file