File tree Expand file tree Collapse file tree 3 files changed +74
-1
lines changed
Expand file tree Collapse file tree 3 files changed +74
-1
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+
8+ jobs :
9+ test :
10+ name : Node.js ${{ matrix.node-version }}
11+ runs-on : ubuntu-latest
12+ strategy :
13+ fail-fast : false
14+ matrix :
15+ node-version : [20, 22, 24]
16+
17+ steps :
18+ - uses : actions/checkout@v4
19+
20+ - name : Set up Node.js ${{ matrix.node-version }}
21+ uses : actions/setup-node@v4
22+ with :
23+ node-version : ${{ matrix.node-version }}
24+ cache : npm
25+
26+ - name : Install dependencies
27+ run : npm ci
28+
29+ - name : Lint
30+ run : npm run lint
31+
32+ - name : Build
33+ run : npm run build
34+
35+ - name : Unit tests
36+ run : npm run test:unit
37+
38+ e2e :
39+ name : E2E tests
40+ runs-on : ubuntu-latest
41+
42+ steps :
43+ - uses : actions/checkout@v4
44+
45+ - name : Set up Node.js 22
46+ uses : actions/setup-node@v4
47+ with :
48+ node-version : 22
49+ cache : npm
50+
51+ - name : Install dependencies
52+ run : npm ci
53+
54+ - name : Build
55+ run : npm run build
56+
57+ - name : Install keychain dependencies
58+ run : sudo apt-get install -y gnome-keyring dbus dbus-x11
59+
60+ - name : E2E tests
61+ run : |
62+ dbus-run-session -- bash -c "
63+ rm -f \$HOME/.local/share/keyrings/* &&
64+ echo -n 'test' | gnome-keyring-daemon --unlock &&
65+ ./test/e2e/run.sh --no-build
66+ "
Original file line number Diff line number Diff line change 2525 "mcpc-bridge" : " ./bin/mcpc-bridge"
2626 },
2727 "engines" : {
28- "node" : " >=18 .0.0"
28+ "node" : " >=20 .0.0"
2929 },
3030 "scripts" : {
3131 "build" : " tsc" ,
Original file line number Diff line number Diff line change 55source " $( dirname " $0 " ) /../../lib/framework.sh"
66test_init " basic/remote-open" --isolated
77
8+ # Skip in CI — external network dependency makes tests flaky
9+ # if [[ "${CI:-}" == "true" ]]; then
10+ # test_case "skip: running in CI"
11+ # test_skip "Remote tests skipped in CI (external network dependency)"
12+ # test_done
13+ # fi
14+
815# Remote server URL (open, no auth required)
916# The ?tools=docs parameter selects the documentation tools subset, ensuring no auth is needed
1017REMOTE_SERVER=" https://mcp.apify.com?tools=docs"
You can’t perform that action at this time.
0 commit comments