mirror of
https://github.com/zhigang1992/telegram-mcp.git
synced 2026-01-12 08:24:40 +08:00
37 lines
746 B
YAML
37 lines
746 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
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 run tsc --noEmit
|
|
|
|
- name: Build
|
|
run: bun run build
|
|
|
|
- name: Check build output
|
|
run: |
|
|
if [ ! -f telegram-mcp ]; then
|
|
echo "Build failed: telegram-mcp executable not found"
|
|
exit 1
|
|
fi
|
|
echo "Build successful: telegram-mcp executable created" |