Skip to content

Commit c3a57bb

Browse files
test: rm creating simulator in CI
1 parent e777220 commit c3a57bb

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

.github/workflows/swiftui-auth.yml

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ jobs:
2525
swiftui-auth:
2626
runs-on: macOS-latest
2727
timeout-minutes: 30
28-
env:
29-
SIMULATOR_NAME: CI-iPhone-16-Test
3028
steps:
3129
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938
3230
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a
@@ -48,24 +46,6 @@ jobs:
4846
- name: Select Xcode version
4947
run: |
5048
sudo xcode-select -switch /Applications/Xcode_16.1.app/Contents/Developer
51-
- name: Create Simulator
52-
run: xcrun simctl create "$SIMULATOR_NAME" "iPhone 16 Plus"
53-
- name: Boot Simulator Once and Generate Preferences
54-
run: |
55-
xcrun simctl boot "$SIMULATOR_NAME"
56-
sleep 5
57-
open -a Simulator
58-
sleep 10
59-
osascript -e 'tell application "Simulator" to quit'
60-
61-
- name: Disable iOS Simulator Hardware Keyboard
62-
run: |
63-
defaults write com.apple.iphonesimulator ConnectHardwareKeyboard -bool false
64-
65-
- name: Boot Simulator for Testing
66-
run: |
67-
xcrun simctl boot "$SIMULATOR_NAME"
68-
sleep 5
6949
- name: Run Integration Tests
7050
run: |
7151
cd ./samples/swiftui/FirebaseSwiftUIExample
@@ -75,7 +55,7 @@ jobs:
7555
run: |
7656
cd ./samples/swiftui/FirebaseSwiftUIExample
7757
set -o pipefail
78-
xcodebuild test -scheme FirebaseSwiftUIExampleUITests -destination "name=$SIMULATOR_NAME" -enableCodeCoverage YES | tee FirebaseSwiftUIExampleUITests.log | xcpretty --test --color --simple
58+
xcodebuild test -scheme FirebaseSwiftUIExampleUITests -destination 'platform=iOS Simulator,name=iPhone 16 Plus' -enableCodeCoverage YES | tee FirebaseSwiftUIExampleUITests.log | xcpretty --test --color --simple
7959
- name: Upload test logs
8060
if: always()
8161
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)