Skip to content

Commit 13ae673

Browse files
committed
fix(linux/workflow): separated only load tests for linux builds that do not support playwright mcp server
1 parent 238ff66 commit 13ae673

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,8 @@ jobs:
207207
echo "::endgroup::"
208208
209209
- name: run mcp test server
210-
if: ( matrix.name == 'android' && matrix.arch == 'x86_64' ) || matrix.name == 'linux' || ( matrix.name == 'linux-musl' && matrix.arch == 'arm64' ) || matrix.name == 'windows' || ( matrix.name == 'macos' && matrix.arch != 'x86_64' )
210+
if: ( matrix.name == 'android' && matrix.arch == 'x86_64' ) || ( matrix.name == 'linux' && matrix.arch == 'x86_64' ) || matrix.name == 'windows' || ( matrix.name == 'macos' && matrix.arch != 'x86_64' )
211211
run: |
212-
${{ matrix.name == 'linux' && matrix.arch == 'arm64' && 'npx playwright install chrome &&' || '' }} \
213212
${{ matrix.name == 'linux-musl' && matrix.arch == 'arm64' && 'docker exec alpine' || '' }} \
214213
npx @playwright/mcp@latest --port 8931 --headless & sleep 10
215214
@@ -227,12 +226,12 @@ jobs:
227226
adb reverse tcp:8931 tcp:8931
228227
adb shell "cd /data/local/tmp && sqlite3 \":memory:\" -cmd \".bail on\" \".load ./dist/mcp\" \"SELECT mcp_version();\" && ./android-test"
229228
230-
- name: linux-musl x86_64 test sqlite-mcp
231-
if: matrix.name == 'linux-musl' && matrix.arch == 'x86_64'
229+
- name: load test only sqlite-mcp
230+
if: matrix.name == 'linux-musl' || ( matrix.name == 'linux' && matrix.arch == 'arm64' )
232231
run: sqlite3 ":memory:" -cmd ".bail on" ".load ./dist/mcp" "SELECT mcp_version();"
233232

234233
- name: test sqlite-mcp
235-
if: matrix.name == 'linux' || ( matrix.name == 'linux-musl' && matrix.arch == 'arm64' ) || matrix.name == 'windows' || ( matrix.name == 'macos' && matrix.arch != 'x86_64' )
234+
if: ( matrix.name == 'linux' && matrix.arch == 'x86_64' ) || matrix.name == 'windows' || ( matrix.name == 'macos' && matrix.arch != 'x86_64' )
236235
run: make test ${{ matrix.make && matrix.make || ''}}
237236

238237
- uses: actions/[email protected]

0 commit comments

Comments
 (0)