Skip to content

Commit 714abe9

Browse files
authored
Merge branch 'blackout/Phase-1' into chore/align-concurrency-and-branch-rules
2 parents 49ce573 + bb4dd76 commit 714abe9

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/native-tests.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ env:
1313
jobs:
1414
native-unit-tests:
1515
strategy:
16+
fail-fast: false
1617
max-parallel: 4
1718
matrix:
1819
platform: [iOS, tvOS]
@@ -27,8 +28,21 @@ jobs:
2728
- name: Checkout
2829
uses: actions/checkout@v5
2930

30-
- name: Select Xcode
31-
run: sudo xcode-select -s /Applications/Xcode_${{ env.XCODE_VERSION }}.app
31+
- name: Set up Xcode
32+
uses: maxim-lobanov/setup-xcode@v1
33+
with:
34+
xcode-version: ${{ env.XCODE_VERSION }}
35+
36+
- name: Setup specified simulator
37+
uses: futureware-tech/simulator-action@v4
38+
id: simulator
39+
with:
40+
model: ${{ matrix.device }}
41+
os: ${{ matrix.platform }}
42+
os_version: '>=18.0'
43+
erase_before_boot: true
44+
wait_for_boot: true
45+
shutdown_after_job: true
3246

3347
- name: Run unit tests
34-
run: xcodebuild -project mParticle-Apple-SDK.xcodeproj -scheme ${{ matrix.scheme }} -destination 'platform=${{ matrix.platform }} Simulator,name=${{ matrix.device }},OS=latest' test
48+
run: xcodebuild -project mParticle-Apple-SDK.xcodeproj -scheme ${{ matrix.scheme }} -destination 'id=${{ steps.simulator.outputs.UDID }}' test

0 commit comments

Comments
 (0)