Skip to content

Commit f381f32

Browse files
committed
fix: fix
1 parent fdcd6af commit f381f32

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

.github/workflows/mocha-android.yml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,31 @@ jobs:
127127
disable-animations: true
128128
working-directory: example
129129
script: |
130-
../.github/workflows/mocha-anrdoid.sh
130+
adb root
131+
adb reverse tcp:3003 tcp:3003
132+
adb reverse tcp:8090 tcp:8090
133+
adb reverse tcp:9090 tcp:9090
134+
adb reverse tcp:9091 tcp:9091
135+
adb reverse tcp:9092 tcp:9092
136+
adb reverse tcp:9735 tcp:9735
137+
adb reverse tcp:9736 tcp:9736
138+
adb reverse tcp:9737 tcp:9737
139+
adb reverse tcp:18080 tcp:18080
140+
adb reverse tcp:28081 tcp:28081
141+
adb reverse tcp:60001 tcp:60001
142+
adb shell date `date +%m%d%H%M%G.%S`
143+
set +e
144+
yarn test:mocha:android
145+
EXIT_CODE=$?
146+
set -e
147+
echo $EXIT_CODE;
148+
if [ $EXIT_CODE -ne 0 ]; then
149+
sleep 10
150+
adb pull /data/user/0/com.exmpl/files/ldk/ /mnt/artifacts/
151+
fi
152+
sleep 10
153+
echo "Test finished"
154+
exit $EXIT_CODE
131155
132156
- uses: actions/upload-artifact@v4
133157
if: failure()

0 commit comments

Comments
 (0)