Skip to content

Commit 9175ded

Browse files
Trying to get emulator action to work
1 parent 4dd7106 commit 9175ded

File tree

1 file changed

+3
-22
lines changed

1 file changed

+3
-22
lines changed

.github/workflows/pr_validation.yaml

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -45,40 +45,21 @@ jobs:
4545
script: |
4646
echo "Running emulator..."
4747
echo "Working directory: $(pwd)"
48-
echo ""
49-
50-
echo "Changing working directory to the example app"
51-
ls -la
52-
echo ""
53-
cd packages
54-
ls -la
55-
echo ""
56-
57-
cd flutter_test_runners
58-
ls -la
59-
echo ""
60-
61-
cd example_deep_links
62-
ls -la
63-
echo ""
64-
65-
echo "Final working directory: $(pwd)"
66-
echo ""
6748
6849
echo "Unlocking the screen"
6950
adb shell input keyevent 82 # Unlock the emulator screen if it's locked
7051
echo ""
7152
7253
echo "Getting Flutter dependencies"
73-
flutter pub get
54+
cd packages/flutter_test_runners/example_deep_links && flutter pub get
7455
echo ""
7556
7657
echo "Building and installing the APK"
77-
flutter run --debug -d emulator-5554
58+
cd packages/flutter_test_runners/example_deep_links && flutter run --debug -d emulator-5554
7859
echo ""
7960
8061
echo "Running Flutter tests"
81-
flutter test test_driver
62+
cd packages/flutter_test_runners/example_deep_links && flutter test test_driver
8263
8364
# - name: Wait for Emulator to Start
8465
# working-directory: ~

0 commit comments

Comments
 (0)