2121 sudo udevadm control --reload-rules
2222 sudo udevadm trigger --name-match=kvm
2323
24+ - name : Set up Flutter
25+ uses : subosito/flutter-action@v2
26+ with :
27+ channel : stable
28+ architecture : x64
29+
2430 - name : Install Android SDK and launch emulator
2531 uses : reactivecircus/android-emulator-runner@v2
2632 with :
@@ -37,28 +43,34 @@ jobs:
3743 emulator-options : -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
3844 disable-animations : false
3945 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
6258
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