|
| 1 | +name: MCP Nightly Regression |
| 2 | + |
| 3 | +on: |
| 4 | + schedule: |
| 5 | + - cron: "0 6 * * *" |
| 6 | + workflow_dispatch: |
| 7 | + |
| 8 | +jobs: |
| 9 | + regression: |
| 10 | + runs-on: ubuntu-latest |
| 11 | + timeout-minutes: 25 |
| 12 | + steps: |
| 13 | + - name: Checkout xint |
| 14 | + uses: actions/checkout@v4 |
| 15 | + |
| 16 | + - name: Checkout xint-rs |
| 17 | + uses: actions/checkout@v4 |
| 18 | + with: |
| 19 | + repository: 0xNyk/xint-rs |
| 20 | + path: xint-rs |
| 21 | + |
| 22 | + - name: Checkout xint-cloud |
| 23 | + uses: actions/checkout@v4 |
| 24 | + with: |
| 25 | + repository: 0xNyk/xint-cloud |
| 26 | + path: xint-cloud |
| 27 | + |
| 28 | + - name: Setup Bun |
| 29 | + uses: oven-sh/setup-bun@v2 |
| 30 | + |
| 31 | + - name: Setup Rust |
| 32 | + uses: dtolnay/rust-toolchain@stable |
| 33 | + |
| 34 | + - name: Install xint deps |
| 35 | + run: bun install --frozen-lockfile |
| 36 | + |
| 37 | + - name: Install xint-cloud deps |
| 38 | + run: bun install --frozen-lockfile |
| 39 | + working-directory: xint-cloud |
| 40 | + |
| 41 | + - name: Generate manifests |
| 42 | + run: | |
| 43 | + bun run xint.ts capabilities --compact > /tmp/xint-ts-capabilities.json |
| 44 | + cargo run --manifest-path xint-rs/Cargo.toml -- capabilities --compact > /tmp/xint-rs-capabilities.json |
| 45 | +
|
| 46 | + - name: Check contract parity |
| 47 | + run: bun scripts/check-capability-contract.mjs /tmp/xint-ts-capabilities.json /tmp/xint-rs-capabilities.json |
| 48 | + |
| 49 | + - name: Check release version parity |
| 50 | + run: > |
| 51 | + bun scripts/check-release-version-parity.mjs |
| 52 | + package.json |
| 53 | + xint-rs/Cargo.toml |
| 54 | + /tmp/xint-ts-capabilities.json |
| 55 | + /tmp/xint-rs-capabilities.json |
| 56 | +
|
| 57 | + - name: Run MCP envelope contract tests (TypeScript) |
| 58 | + run: bun test lib/mcp-envelope-contract.test.ts |
| 59 | + |
| 60 | + - name: Run MCP envelope contract tests (Rust) |
| 61 | + run: | |
| 62 | + cargo test --manifest-path xint-rs/Cargo.toml mcp::costs_tool_returns_success_payload_without_network |
| 63 | + cargo test --manifest-path xint-rs/Cargo.toml mcp::cache_clear_tool_returns_success_payload |
| 64 | +
|
| 65 | + - name: Run package API smoke tests (xint-cloud create/query/publish) |
| 66 | + run: bun test src/server.test.ts --filter "package status/search/query/publish/refresh endpoints operate on persisted package state" |
| 67 | + working-directory: xint-cloud |
0 commit comments