Skip to content

Commit 6c17daf

Browse files
committed
fix(android/workflow): missing mcp test server on host machine
1 parent d55308d commit 6c17daf

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,6 @@ jobs:
202202
203203
echo "::group::prepare the test script"
204204
make test PLATFORM=$PLATFORM ARCH=$ARCH || echo "It should fail. Running remaining commands in the emulator"
205-
cat > commands.sh << EOF
206-
mv -f /data/local/tmp/sqlite3 /system/xbin
207-
cd /data/local/tmp
208-
$(make test PLATFORM=$PLATFORM ARCH=$ARCH -n)
209-
EOF
210205
rm -rf build # free space for the emulator
211206
echo "::endgroup::"
212207
@@ -220,7 +215,9 @@ jobs:
220215
adb root
221216
adb remount
222217
adb push ${{ github.workspace }}/. /data/local/tmp/
223-
adb shell "sh /data/local/tmp/commands.sh"
218+
adb shell "mv -f /data/local/tmp/sqlite3 /system/xbin"
219+
npx @playwright/mcp@latest --port 8931 --headless & sleep 3 && \
220+
adb shell "cd /data/local/tmp && sqlite3 \":memory:\" -cmd \".bail on\" \".load ./dist/mcp\" \"SELECT mcp_version();\" && ./build/test"
224221
225222
- name: linux-musl x86_64 test sqlite-mcp
226223
if: matrix.name == 'linux-musl' && matrix.arch == 'x86_64'

0 commit comments

Comments
 (0)