21
21
sudo udevadm control --reload-rules
22
22
sudo udevadm trigger --name-match=kvm
23
23
24
+ - name : Set up Flutter
25
+ uses : subosito/flutter-action@v2
26
+ with :
27
+ channel : stable
28
+ architecture : x64
29
+
24
30
- name : Install Android SDK and launch emulator
25
31
uses : reactivecircus/android-emulator-runner@v2
26
32
with :
@@ -37,28 +43,34 @@ jobs:
37
43
emulator-options : -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
38
44
disable-animations : false
39
45
script : |
40
- echo "Emulator is running"
41
-
42
- - name : Wait for Emulator to Start
43
- run : |
44
- adb wait-for-device
45
- adb shell input keyevent 82 # Unlock the emulator screen if it's locked
46
-
47
- - name : Set up Flutter
48
- uses : subosito/flutter-action@v2
49
- with :
50
- channel : stable
51
- architecture : x64
52
-
53
- - name : Install Flutter Dependencies
54
- run : flutter pub get
55
-
56
- - name : Build Flutter App (Debug Mode)
57
- # Must be debug mode so we can enable Flutter Driver.
58
- run : flutter build apk --debug
59
-
60
- - name : Install App on Emulator
61
- run : flutter install --debug
46
+ echo "Unlocking the screen"
47
+ adb shell input keyevent 82 # Unlock the emulator screen if it's locked
48
+
49
+ echo "Getting Flutter dependencies"
50
+ flutter pub get
51
+
52
+ echo "Building and installing the APK"
53
+ flutter build apk --debug
54
+ flutter install --debug
55
+
56
+ echo "Running Flutter tests"
57
+ flutter test test_driver
62
58
63
- - name : Run deep link tests
64
- run : flutter test test_driver
59
+ # - name: Wait for Emulator to Start
60
+ # working-directory: ~
61
+ # run: |
62
+ # adb wait-for-device
63
+ # adb shell input keyevent 82 # Unlock the emulator screen if it's locked
64
+ #
65
+ # - name: Install Flutter Dependencies
66
+ # run: flutter pub get
67
+ #
68
+ # - name: Build Flutter App (Debug Mode)
69
+ # # Must be debug mode so we can enable Flutter Driver.
70
+ # run: flutter build apk --debug
71
+ #
72
+ # - name: Install App on Emulator
73
+ # run: flutter install --debug
74
+ #
75
+ # - name: Run deep link tests
76
+ # run: flutter test test_driver
0 commit comments