Skip to content

Commit eac86b9

Browse files
authored
Merge branch 'blackout/Phase-1' into chore/replace-cpp-bracket-code
2 parents 8bbb5ca + bb4dd76 commit eac86b9

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
@@ -14,6 +14,7 @@ env:
1414
jobs:
1515
native-unit-tests:
1616
strategy:
17+
fail-fast: false
1718
max-parallel: 4
1819
matrix:
1920
platform: [iOS, tvOS]
@@ -28,8 +29,21 @@ jobs:
2829
- name: Checkout
2930
uses: actions/checkout@v5
3031

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

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

0 commit comments

Comments
 (0)