File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,31 @@ jobs:
127
127
disable-animations : true
128
128
working-directory : example
129
129
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
131
155
132
156
- uses : actions/upload-artifact@v4
133
157
if : failure()
You can’t perform that action at this time.
0 commit comments