Skip to content

Commit 925e404

Browse files
committed
fix(android/workflow): kill mcp test server after android emulator test
1 parent 8e19a04 commit 925e404

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,13 +213,14 @@ jobs:
213213
api-level: 26
214214
arch: ${{ matrix.arch }}
215215
script: |
216+
npx @playwright/mcp@latest --port 8931 --headless & NPX_PID=$!; sleep 15
216217
adb root
217218
adb remount
218219
adb push ${{ github.workspace }}/. /data/local/tmp/
219220
adb shell "mv -f /data/local/tmp/sqlite3 /system/xbin"
220-
npx @playwright/mcp@latest --port 8931 --headless & sleep 20
221221
adb reverse tcp:8931 tcp:8931
222222
adb shell "cd /data/local/tmp && sqlite3 \":memory:\" -cmd \".bail on\" \".load ./dist/mcp\" \"SELECT mcp_version();\" && ./android-test"
223+
kill $NPX_PID
223224
224225
- name: linux-musl x86_64 test sqlite-mcp
225226
if: matrix.name == 'linux-musl' && matrix.arch == 'x86_64'

0 commit comments

Comments
 (0)