File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -109,13 +109,18 @@ jobs:
109
109
run : flutter pub get
110
110
111
111
- name : launch ios simulator
112
+ id : sim
112
113
run : |
113
114
simulator_id=$(xcrun simctl create sentryPhone com.apple.CoreSimulator.SimDeviceType.iPhone-14 com.apple.CoreSimulator.SimRuntime.iOS-16-2)
115
+ echo "SIMULATOR_ID=${simulator_id}" >> "$GITHUB_OUTPUT"
114
116
xcrun simctl boot ${simulator_id}
115
117
118
+ - name : run ios native test
119
+ working-directory : ./flutter/example/ios
120
+ env :
121
+ SIMULATOR_ID : ${{ steps.sim.outputs.SIMULATOR_ID }}
122
+ run : xcodebuild test -workspace Runner.xcworkspace -scheme Runner -configuration Debug -destination "platform=iOS Simulator,id=$SIMULATOR_ID"
123
+
116
124
# - name: run ios integration test
117
125
# run: flutter test integration_test/integration_test.dart --verbose
118
126
119
- - name : run ios native test
120
- working-directory : ./flutter/example/ios
121
- run : xcodebuild test -workspace Runner.xcworkspace -scheme Runner -configuration Debug -destination "platform=iOS Simulator,name=sentryPhone"
You can’t perform that action at this time.
0 commit comments