37 lines
947 B
YAML
37 lines
947 B
YAML
name: CI
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [main]
|
|
push:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
validate:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
steps:
|
|
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
|
|
with:
|
|
persist-credentials: false
|
|
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
|
|
with:
|
|
bun-version: 1.3.14
|
|
- run: bun install --frozen-lockfile
|
|
- run: bun run check:version
|
|
- run: bun run check
|
|
- run: bun test
|
|
- run: bun run build:binary
|
|
- run: bun run scripts/verify-binary.ts dist/bin/hose-use
|
|
- run: bun run build:plugin
|
|
- run: git diff --exit-code -- dist/mcp/server.js
|
|
- run: bun run scripts/verify-binary.ts dist/mcp/server.js --plugin
|