58 lines
1.2 KiB
YAML
58 lines
1.2 KiB
YAML
name: 🧪 CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test-and-check:
|
|
name: 🧪 Test, Type-Check & Build Validation
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
|
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
|
|
with:
|
|
bun-version: 1.3.14
|
|
|
|
- name: Install dependencies
|
|
run: bun install --frozen-lockfile
|
|
|
|
- name: Type-check
|
|
run: bun run check
|
|
|
|
- name: Lint
|
|
run: bun run lint
|
|
|
|
- name: Linter Plaintext Sync
|
|
run: bun run verify:linter-plaintext
|
|
|
|
- name: CLI Documentation Sync
|
|
run: bun run verify:cli-md
|
|
|
|
- name: Embedded Skill Sync
|
|
run: bun run verify:embedded-skill
|
|
|
|
- name: Colocated Unit Tests
|
|
run: bun test
|
|
|
|
|
|
- name: Verify Binary Compilation
|
|
run: |
|
|
mkdir -p dist/bin
|
|
bun run build:binary
|