Skip to content

Commit cb30cbe

Browse files
preboot simulator
1 parent a513dd0 commit cb30cbe

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

.github/actions/xcode-setup/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ runs:
2626
uses: ruby/setup-ruby@v1
2727
with:
2828
ruby-version: ${{ inputs.ruby_version }}
29+
bundler-cache: true
2930
- name: Install dependencies
3031
run: |
3132
bundle install

.github/workflows/wda-tests.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,18 @@ jobs:
199199
with:
200200
node_version: ${{ env.DEFAULT_NODE_VERSION }}
201201
xcode_version: ${{ matrix.config.xcode_version }}
202+
- name: Start iOS Simulator UI
203+
run: open -Fn "$(xcode-select --print-path)/Applications/Simulator.app"
204+
- name: Prepare iOS simulator
205+
id: prepareSimulator
206+
uses: futureware-tech/simulator-action@v4
207+
with:
208+
model: "${{ matrix.config.dest == 'iphone' && matrix.config.iphone_model || matrix.config.ipad_model }}"
209+
os_version: "${{ matrix.config.ios_version }}"
210+
shutdown_after_job: false
211+
wait_for_boot: true
212+
- name: Finalize iOS simulator boot
213+
run: xcrun --sdk iphonesimulator --show-sdk-version
202214
- name: Run integration test
203215
run: ./Scripts/build.sh
204216
env:
@@ -209,3 +221,5 @@ jobs:
209221
IPHONE_MODEL: ${{ matrix.config.iphone_model }}
210222
IPAD_MODEL: ${{ matrix.config.ipad_model }}
211223
IOS_VERSION: ${{ matrix.config.ios_version }}
224+
FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT: 240
225+
FASTLANE_XCODEBUILD_SETTINGS_RETRIES: 2

0 commit comments

Comments
 (0)