@@ -11,43 +11,38 @@ jobs:
1111 name : E2E Tests
1212 runs-on : ubuntu-latest
1313
14- strategy :
15- matrix :
16- node-version : [18.x, 20.x, 22.x]
17-
1814 steps :
1915 - name : Checkout repository
2016 uses : actions/checkout@v4
2117
22- - name : Setup Node.js ${{ matrix.node-version }}
23- uses : actions /setup-node@v4
18+ - name : Setup Bun
19+ uses : oven-sh /setup-bun@v1
2420 with :
25- node-version : ${{ matrix.node-version }}
26- cache : ' npm'
21+ bun-version : ' latest'
2722
2823 - name : Install dependencies
29- run : npm ci
24+ run : bun install --frozen-lockfile
3025
3126 - name : Type check
32- run : npm run type-check
27+ run : bun run type-check
3328
3429 - name : Build project
35- run : npm run build
30+ run : bun run build
3631
3732 - name : Run E2E tests
38- run : npm run test:quick
33+ run : bun run test:quick
3934
4035 - name : Test configuration loading
4136 run : |
4237 echo "Testing basic configuration..."
43- timeout 10s node build/index.js --config=tests/configs/basic.yaml || true
38+ timeout 10s bun build/index.js --config=tests/configs/basic.yaml || true
4439 echo "Testing JSON configuration..."
45- timeout 10s node build/index.js --config=tests/configs/basic.json || true
40+ timeout 10s bun build/index.js --config=tests/configs/basic.json || true
4641
4742 - name : Test environment configuration
4843 run : |
4944 echo "Testing environment variables..."
50- timeout 10s env MCP_SERVERS="test:npx:user-review-mcp" node build/index.js || true
45+ timeout 10s env MCP_SERVERS="test:npx:user-review-mcp" bun build/index.js || true
5146
5247 build-check :
5348 name : Build Verification
@@ -57,17 +52,16 @@ jobs:
5752 - name : Checkout repository
5853 uses : actions/checkout@v4
5954
60- - name : Setup Node.js
61- uses : actions /setup-node@v4
55+ - name : Setup Bun
56+ uses : oven-sh /setup-bun@v1
6257 with :
63- node-version : ' 20.x'
64- cache : ' npm'
58+ bun-version : ' latest'
6559
6660 - name : Install dependencies
67- run : npm ci
61+ run : bun install --frozen-lockfile
6862
6963 - name : Build project
70- run : npm run build
64+ run : bun run build
7165
7266 - name : Verify build artifacts
7367 run : |
7670 [ -f "build/aggregator-server.js" ] || { echo "Missing aggregator-server.js"; exit 1; }
7771 [ -f "build/config.js" ] || { echo "Missing config.js"; exit 1; }
7872 echo "All build artifacts present ✅"
79-
80- - name : Test package installation
81- run : |
82- npm pack
83- npm install -g ./mcp-gateway-*.tgz
84- echo "Package installation successful ✅"
0 commit comments