Skip to content

Commit 0da044f

Browse files
authored
test: remove avd snapshots (#758)
1 parent 4b4e22c commit 0da044f

File tree

1 file changed

+25
-23
lines changed

1 file changed

+25
-23
lines changed

.github/workflows/e2e_tests.yaml

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -91,27 +91,6 @@ jobs:
9191
9292
- uses: actions/checkout@v4
9393

94-
- name: Checkout AVD snapshots
95-
uses: actions/checkout@v4
96-
with:
97-
repository: DorianMazur/react-native-keychain-avds
98-
sparse-checkout: |
99-
${{ matrix.api-level }}
100-
path: avd-snapshots
101-
lfs: true
102-
103-
- name: Setup AVD snapshots
104-
run: |
105-
mkdir -p ~/.android/avd
106-
if [ -d "avd-snapshots/${{ matrix.api-level }}" ]; then
107-
echo "Found AVD snapshot for API ${{ matrix.api-level }}"
108-
cp -r avd-snapshots/${{ matrix.api-level }}/* ~/.android/avd/
109-
else
110-
echo "ERROR: No pre-configured AVD snapshot found for API ${{ matrix.api-level }}"
111-
echo "Please ensure the required snapshot exists in the repository."
112-
exit 1
113-
fi
114-
11594
- name: Setup Node.js
11695
uses: actions/setup-node@v4
11796
with:
@@ -143,11 +122,34 @@ jobs:
143122
api-level: ${{ matrix.api-level }}
144123
arch: x86_64
145124
profile: pixel_6
146-
force-avd-creation: false
147-
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
148125
disable-animations: true
149126
avd-name: TestingAVD
150127
script: |
128+
echo "Starting the screen recording..."
129+
sleep 3
130+
adb shell "screenrecord --bugreport /data/local/tmp/screenrecord.mp4 & echo \$! > /data/local/tmp/screenrecord_pid.txt" &
131+
adb shell settings put system pointer_location 1
132+
adb shell locksettings set-pin 1111
133+
sleep 3
134+
adb shell am start -a android.settings.BIOMETRIC_ENROLL
135+
sleep 3
136+
adb shell input text 1111
137+
adb shell input keyevent 66
138+
sleep 3
139+
adb shell input tap 900 2200
140+
sleep 3
141+
adb shell input tap 900 2200
142+
sleep 3
143+
adb -e emu finger touch 1
144+
sleep 3
145+
adb -e emu finger touch 1
146+
sleep 3
147+
adb -e emu finger touch 1
148+
sleep 3
149+
adb shell input keyevent KEYCODE_HOME
150+
adb shell "kill -2 \$(cat /data/local/tmp/screenrecord_pid.txt)"
151+
sleep 1
152+
adb pull /data/local/tmp/screenrecord.mp4 .
151153
cd KeychainExample
152154
yarn test:android:run
153155
- name: Upload test artifacts

0 commit comments

Comments
 (0)