Skip to content

Commit 7e2e450

Browse files
committed
chore: move playwright-mcp into the monorepo
1 parent 8036df3 commit 7e2e450

File tree

132 files changed

+11025
-2126
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

132 files changed

+11025
-2126
lines changed

.github/workflows/test_mcp.yml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
name: MCP
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- release-*
8+
pull_request:
9+
paths-ignore:
10+
- 'browser_patches/**'
11+
- 'docs/**'
12+
branches:
13+
- main
14+
- release-*
15+
16+
concurrency:
17+
# For pull requests, cancel all currently-running jobs for this workflow
18+
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
19+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
20+
cancel-in-progress: true
21+
22+
env:
23+
# Force terminal colors. @see https://www.npmjs.com/package/colors
24+
FORCE_COLOR: 1
25+
ELECTRON_SKIP_BINARY_DOWNLOAD: 1
26+
DEBUG_GIT_COMMIT_INFO: 1
27+
28+
jobs:
29+
test_mcp:
30+
name: ${{ matrix.os }}
31+
strategy:
32+
fail-fast: false
33+
matrix:
34+
os: [ubuntu-latest, macos-15, windows-latest]
35+
runs-on: ${{ matrix.os }}
36+
steps:
37+
- uses: actions/checkout@v4
38+
- name: Use Node.js 20
39+
uses: actions/setup-node@v4
40+
with:
41+
node-version: '20'
42+
cache: 'npm'
43+
- run: npm ci
44+
- run: npm run build
45+
- run: npx playwright install --with-deps
46+
- run: npm run mcp-test
47+
48+
test_mcp_extension:
49+
name: Extension
50+
strategy:
51+
fail-fast: false
52+
runs-on: ubuntu-latest
53+
steps:
54+
- uses: actions/checkout@v4
55+
- name: Use Node.js 20
56+
uses: actions/setup-node@v4
57+
with:
58+
node-version: '20'
59+
cache: 'npm'
60+
61+
- name: "Extension: Install dependencies"
62+
run: npm ci
63+
working-directory: ./packages/mcp-extension
64+
- name: "Extension: Build"
65+
run: npm run build
66+
working-directory: ./packages/mcp-extension
67+
- name: "Extension: Upload artifact"
68+
uses: actions/upload-artifact@v4
69+
with:
70+
name: extension
71+
path: ./packages/mcp-extension/dist
72+
retention-days: 7
73+
74+
- run: npm ci
75+
- run: npm run build
76+
- run: npx playwright install chromium
77+
78+
- name: Run tests
79+
run: |
80+
if [[ "$(uname)" == "Linux" ]]; then
81+
xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- npm run mcp-etest
82+
else
83+
npm run mcp-etest
84+
fi
85+
shell: bash

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ yarn.lock
1313
/packages/playwright-core/src/generated
1414
/packages/playwright-ct-core/src/generated
1515
packages/*/lib/
16+
packages/mcp-extension/dist/
17+
packages/mcp-extension/lib/
1618
drivers/
1719
.android-sdk/
1820
.gradle/

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ const ignores = [
5454
"packages/html-reporter/playwright.config.ts",
5555
"packages/html-reporter/playwright/*",
5656
"packages/html-reporter/vite.config.ts",
57+
"packages/mcp-extension/",
5758
"test-results/",
5859
"tests/assets/",
5960
"tests/components/",

0 commit comments

Comments
 (0)