1a7294ff72
These packages feed directly into the extension webview. An upstream opencode merge that only touches packages/ui or packages/kilo-ui would previously skip the kilo-vscode unit tests entirely, allowing contract regressions to merge undetected. The unit tests (bun test tests/unit/) are pure — no CLI binary needed — so adding these paths has no performance cost.
37 lines
731 B
YAML
37 lines
731 B
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
|