File tree Expand file tree Collapse file tree 1 file changed +24
-9
lines changed
Expand file tree Collapse file tree 1 file changed +24
-9
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,11 @@ permissions:
1313 checks : write
1414 id-token : write
1515
16+ env :
17+ XCODE_VERSION : " 16.4"
18+ DEVICE : " iPhone 16 Pro"
19+ VERSION : " >=18.0"
20+
1621jobs :
1722 pr-branch-check-name :
1823 name : " Check PR for semantic branch name"
@@ -23,20 +28,30 @@ jobs:
2328
2429 test :
2530 name : Test
31+ timeout-minutes : 15
2632 runs-on : macos-15
2733 steps :
2834 - name : Checkout
29- uses : actions/checkout@v5
30- - name : Set up Xcode 16
35+ uses : actions/checkout@v6
36+
37+ - name : Set up Xcode
3138 uses : maxim-lobanov/setup-xcode@v1
3239 with :
33- xcode-version : 16.3.0
34- - name : Run Tests
35- run : >
36- set -o pipefail &&
37- xcodebuild test -project mParticle-Rokt.xcodeproj -scheme mParticle_RoktTests -destination 'platform=iOS Simulator,name=iPhone 16,OS=latest'
38- | xcbeautify --renderer github-actions
39- shell : bash
40+ xcode-version : ${{ env.XCODE_VERSION }}
41+
42+ - name : Setup specified simulator
43+ uses : futureware-tech/simulator-action@v4
44+ id : simulator
45+ with :
46+ model : ${{ env.DEVICE }}
47+ os : iOS
48+ os_version : ${{ env.VERSION }}
49+ erase_before_boot : true
50+ wait_for_boot : true
51+ shutdown_after_job : true
52+
53+ - name : Run unit tests
54+ run : xcodebuild -project mParticle-Rokt.xcodeproj -scheme mParticle_RoktTests -destination 'id=${{ steps.simulator.outputs.UDID }}' test
4055
4156 pr-notify :
4257 if : >
You can’t perform that action at this time.
0 commit comments