File tree Expand file tree Collapse file tree 2 files changed +13
-12
lines changed
packages/flutter_test_runners/lib/src/deep_links Expand file tree Collapse file tree 2 files changed +13
-12
lines changed Original file line number Diff line number Diff line change 34
34
channel : stable
35
35
architecture : x64
36
36
37
+ - name : Install Flutter Dependencies
38
+ run : flutter pub get
39
+
40
+ - name : Build Flutter App (Debug Mode)
41
+ # Must be debug mode so we can enable Flutter Driver.
42
+ run : flutter build apk --debug
43
+
37
44
- name : Install Android SDK and launch emulator
38
45
uses : reactivecircus/android-emulator-runner@v2
39
46
with :
57
64
adb shell input keyevent 82 # Unlock the emulator screen if it's locked
58
65
echo ""
59
66
60
- echo "Getting Flutter dependencies"
61
- cd packages/flutter_test_runners/example_deep_links && flutter pub get
62
- echo ""
63
-
64
- echo "Building and installing the APK"
65
- cd packages/flutter_test_runners/example_deep_links && flutter build apk --debug && flutter install --debug -d emulator-5554
67
+ echo "Installing the APK"
68
+ cd packages/flutter_test_runners/example_deep_links && flutter install --debug -d emulator-5554
66
69
echo ""
67
70
68
71
echo "Running Flutter tests"
74
77
# adb wait-for-device
75
78
# adb shell input keyevent 82 # Unlock the emulator screen if it's locked
76
79
#
77
- # - name: Install Flutter Dependencies
78
- # run: flutter pub get
79
- #
80
- # - name: Build Flutter App (Debug Mode)
81
- # # Must be debug mode so we can enable Flutter Driver.
82
- # run: flutter build apk --debug
83
80
#
84
81
# - name: Install App on Emulator
85
82
# run: flutter install --debug
Original file line number Diff line number Diff line change @@ -80,6 +80,10 @@ void testDeepLinkAndroidAppLaunch(
80
80
81
81
// Wait for a moment so that the app has time to start the Dart VM
82
82
// service and report it in the ADB logs.
83
+ //
84
+ // When running locally, waiting 1 second is probably sufficient. But
85
+ // when running in GitHub CI, we need to wait longer to make sure the
86
+ // Dart VM service reports its URL.
83
87
_log.info ("Waiting a moment so that app can launch the Dart VM service." );
84
88
await Future .delayed (const Duration (seconds: 5 ));
85
89
You can’t perform that action at this time.
0 commit comments