Skip to content

Commit 67bbc9e

Browse files
ci: Use installed simulators for UI tests (#5016)
Stop creating simulators which can take around 5 minutes and use the already installed simulators on the GH action.
1 parent d6d9c4b commit 67bbc9e

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

.github/workflows/ui-tests.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -107,29 +107,28 @@ jobs:
107107
./fastlane/test_output/**
108108
109109
ui-tests-swift:
110-
name: UI Tests for iOS-Swift ${{matrix.device}} Simulator
110+
name: UI Tests for iOS-Swift Xcode ${{matrix.xcode}}
111111
runs-on: ${{matrix.runs-on}}
112112
strategy:
113113
fail-fast: false
114114
matrix:
115115
include:
116+
# As of 25th March 2025, the preinstalled iOS simulator version is 16.4 for macOS 13 and Xcode 14.3.1; see
117+
# https://github.com/actions/runner-images/blob/main/images/macos/macos-13-Readme.md#installed-sdks
116118
- runs-on: macos-13
117-
xcode: "15.2"
118-
device: "iPhone 14 (16.4)"
119+
xcode: "14.3.1"
119120

121+
# As of 25th March 2025, the default iOS simulator version is 17.5 for macOS 14 and Xcode 15.4; see
122+
# https://github.com/actions/runner-images/blob/main/images/macos/macos-14-Readme.md#installed-sdks
120123
- runs-on: macos-14
121124
xcode: "15.4"
122-
device: "iPhone 15 (17.2)"
125+
123126
steps:
124127
- uses: actions/checkout@v4
125128
- run: ./scripts/ci-select-xcode.sh ${{matrix.xcode}}
126129

127-
- name: Create iOS 16.4 simulator
128-
if: ${{ matrix.device == 'iPhone 14 (16.4)' }}
129-
run: ./scripts/create-simulator.sh 14.3.1 16.4 "iPhone 14" true
130-
131130
- name: Run Fastlane
132-
run: fastlane ui_tests_ios_swift device:"${{matrix.device}}"
131+
run: fastlane ui_tests_ios_swift
133132

134133
- name: Publish Test Report
135134
uses: mikepenz/action-junit-report@97744eca465b8df9e6e33271cb155003f85327f1 # v5.5.0
@@ -144,14 +143,14 @@ jobs:
144143
uses: actions/upload-artifact@v4
145144
if: ${{ failure() }}
146145
with:
147-
name: ui-tests-ios-swift-${{matrix.device}}.xcresult
146+
name: ui-tests-ios-swift-${{matrix.xcode}}.xcresult
148147
path: fastlane/test_results/ui-tests-ios-swift.xcresult
149148

150149
- name: Archiving Raw Test Logs
151150
uses: actions/upload-artifact@v4
152151
if: ${{ failure() || cancelled() }}
153152
with:
154-
name: ui-tests-ios-swift-raw-logs-${{matrix.device}}
153+
name: ui-tests-ios-swift-raw-logs-${{matrix.xcode}}
155154
path: |
156155
~/Library/Logs/scan/*.log
157156
./fastlane/test_output/**

0 commit comments

Comments
 (0)