From ad4b0c574ffc8cf0b44d3a00232ebd552b6990a6 Mon Sep 17 00:00:00 2001 From: James Newman Date: Wed, 10 Dec 2025 11:05:36 -0500 Subject: [PATCH 1/4] Update max parrallel --- .github/workflows/native-tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/native-tests.yml b/.github/workflows/native-tests.yml index d176781cf..3edb1d2bb 100644 --- a/.github/workflows/native-tests.yml +++ b/.github/workflows/native-tests.yml @@ -14,6 +14,7 @@ env: jobs: native-unit-tests: strategy: + max-parallel: 4 matrix: platform: [iOS, tvOS] scheme: [mParticle-Apple-SDK, mParticle-Apple-SDK-NoLocation] @@ -30,5 +31,5 @@ jobs: - name: Select Xcode run: sudo xcode-select -s /Applications/Xcode_${{ env.XCODE_VERSION }}.app - - name: Run iOS unit tests + - name: Run unit tests run: xcodebuild -project mParticle-Apple-SDK.xcodeproj -scheme ${{ matrix.scheme }} -destination 'platform=${{ matrix.platform }} Simulator,name=${{ matrix.device }},OS=latest' test From 2efa59314234c99998b5aa52d2d492409e6523c5 Mon Sep 17 00:00:00 2001 From: James Newman Date: Wed, 10 Dec 2025 14:07:05 -0500 Subject: [PATCH 2/4] chore: Change setup xcode to use 3rd party action --- .github/workflows/native-tests.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/native-tests.yml b/.github/workflows/native-tests.yml index 3edb1d2bb..38c430cb1 100644 --- a/.github/workflows/native-tests.yml +++ b/.github/workflows/native-tests.yml @@ -28,8 +28,10 @@ jobs: - name: Checkout uses: actions/checkout@v5 - - name: Select Xcode - run: sudo xcode-select -s /Applications/Xcode_${{ env.XCODE_VERSION }}.app + - name: Set up Xcode + uses: maxim-lobanov/setup-xcode@v1 + with: + xcode-version: ${{ env.XCODE_VERSION }} - name: Run unit tests run: xcodebuild -project mParticle-Apple-SDK.xcodeproj -scheme ${{ matrix.scheme }} -destination 'platform=${{ matrix.platform }} Simulator,name=${{ matrix.device }},OS=latest' test From bc198e5c85febfd93f54d1fffcf73d3e84a515c6 Mon Sep 17 00:00:00 2001 From: James Newman Date: Wed, 10 Dec 2025 14:23:41 -0500 Subject: [PATCH 3/4] Setup specified simulator --- .github/workflows/native-tests.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/native-tests.yml b/.github/workflows/native-tests.yml index 38c430cb1..adedca412 100644 --- a/.github/workflows/native-tests.yml +++ b/.github/workflows/native-tests.yml @@ -31,7 +31,18 @@ jobs: - name: Set up Xcode uses: maxim-lobanov/setup-xcode@v1 with: - xcode-version: ${{ env.XCODE_VERSION }} + xcode-version: ${{ env.XCODE_VERSION }} + + - name: Setup specified simulator + uses: futureware-tech/simulator-action@v4 + id: simulator + with: + model: ${{ matrix.device }} + os: ${{ matrix.platform }} + os_version: '>=18.0' + erase_before_boot: true + wait_for_boot: true + shutdown_after_job: true - name: Run unit tests - run: xcodebuild -project mParticle-Apple-SDK.xcodeproj -scheme ${{ matrix.scheme }} -destination 'platform=${{ matrix.platform }} Simulator,name=${{ matrix.device }},OS=latest' test + run: xcodebuild -project mParticle-Apple-SDK.xcodeproj -scheme ${{ matrix.scheme }} -destination 'id=${{ steps.simulator.outputs.UDID }}' test From 4f357b046a4fa19893ffe4a520fa48461f687b88 Mon Sep 17 00:00:00 2001 From: James Newman Date: Wed, 10 Dec 2025 15:43:10 -0500 Subject: [PATCH 4/4] Add fail fast false so all tests run and we can see failures --- .github/workflows/native-tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/native-tests.yml b/.github/workflows/native-tests.yml index adedca412..189b11b32 100644 --- a/.github/workflows/native-tests.yml +++ b/.github/workflows/native-tests.yml @@ -14,6 +14,7 @@ env: jobs: native-unit-tests: strategy: + fail-fast: false max-parallel: 4 matrix: platform: [iOS, tvOS]