-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (38 loc) · 1.26 KB
/
test.yml
File metadata and controls
49 lines (38 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: CI - Bun
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
test:
name: Tests (Bun)
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Type check
run: bun x tsc --noEmit
- name: Run quick E2E tests
run: bun run tests/e2e-simple.ts
- name: Run full E2E tests
run: bun run tests/e2e-test.ts
- name: Run payment E2E tests
run: bun run tests/e2e-payment.ts
- name: Smoke: config loading with Bun
run: |
timeout 10s bun run src/index.ts --config=tests/configs/basic.yaml || true
timeout 10s bun run src/index.ts --config=tests/configs/basic.json || true
- name: Smoke: env config with Bun
run: |
timeout 10s env MCP_SERVERS="test:npx:user-review-mcp" bun run src/index.ts || true
- name: Smoke: payment configs
run: |
timeout 10s bun run src/index.ts --config=tests/configs/paid-free-tools.yaml || true
timeout 10s bun run src/index.ts --config=tests/configs/paid-disabled.yaml || true