Skip to content

Commit 6dc9e6c

Browse files
committed
use id to start test
1 parent 7fcb9e9 commit 6dc9e6c

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/flutter_integration_test.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,13 +109,18 @@ jobs:
109109
run: flutter pub get
110110

111111
- name: launch ios simulator
112+
id: sim
112113
run: |
113114
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"
114116
xcrun simctl boot ${simulator_id}
115117
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+
116124
# - name: run ios integration test
117125
# run: flutter test integration_test/integration_test.dart --verbose
118126

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"

0 commit comments

Comments
 (0)