f5ac4ca526
- Add check-kilocode-change script in packages/kilo-vscode/package.json - Update CI to use the script instead of inlined grep - Document the check in root AGENTS.md alongside knip
49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
name: test-vscode
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
paths:
|
|
- "packages/kilo-vscode/**"
|
|
- "packages/ui/**"
|
|
- "packages/kilo-ui/**"
|
|
pull_request:
|
|
paths:
|
|
- "packages/kilo-vscode/**"
|
|
- "packages/ui/**"
|
|
- "packages/kilo-ui/**"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
unit:
|
|
name: unit tests
|
|
runs-on: blacksmith-4vcpu-ubuntu-2404
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Setup Bun
|
|
uses: ./.github/actions/setup-bun
|
|
|
|
- name: Run unit tests
|
|
working-directory: packages/kilo-vscode
|
|
run: bun run test:unit
|
|
|
|
- name: Check formatting (prettier)
|
|
working-directory: packages/kilo-vscode
|
|
run: bun run format:check
|
|
|
|
- name: Check for dead code (knip)
|
|
working-directory: packages/kilo-vscode
|
|
run: bun run knip
|
|
|
|
- name: Check for kilocode_change markers
|
|
working-directory: packages/kilo-vscode
|
|
run: bun run check-kilocode-change
|