mirror of
https://github.com/openclaw/clawhub.git
synced 2026-08-14 00:47:57 +00:00
62 lines
1.2 KiB
YAML
62 lines
1.2 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6
|
|
with:
|
|
bun-version: 1.3.10
|
|
|
|
- name: Install
|
|
run: bun install --frozen-lockfile
|
|
- name: Peer deps
|
|
run: bun run check:peers
|
|
- name: Audit dependencies
|
|
run: bun audit
|
|
|
|
- name: Format
|
|
run: bun run format:check
|
|
|
|
- name: Lint
|
|
run: bun run lint
|
|
|
|
- name: Dead code
|
|
run: bun run deadcode:ci
|
|
|
|
- name: Test
|
|
run: bun run test
|
|
env:
|
|
VITE_CONVEX_URL: https://example.invalid
|
|
|
|
- name: Coverage
|
|
run: bun run coverage
|
|
env:
|
|
VITE_CONVEX_URL: https://example.invalid
|
|
|
|
- name: ClawHub CLI Verify
|
|
run: bun run --cwd packages/clawhub verify
|
|
|
|
- name: Typecheck
|
|
run: |
|
|
bunx tsc --noEmit
|
|
bunx tsc -p packages/schema/tsconfig.json --noEmit
|
|
bunx tsc -p packages/clawhub/tsconfig.json --noEmit
|
|
|
|
- name: Build
|
|
run: bun run build
|