Skip to content

Commit ae8c7d6

Browse files
committed
Added CI/CD tests
1 parent a2f75df commit ae8c7d6

File tree

3 files changed

+74
-1
lines changed

3 files changed

+74
-1
lines changed

.github/workflows/ci.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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+
"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
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",

test/e2e/suites/basic/remote-open.test.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@
55
source "$(dirname "$0")/../../lib/framework.sh"
66
test_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
1017
REMOTE_SERVER="https://mcp.apify.com?tools=docs"

0 commit comments

Comments
 (0)