mirror of
https://github.com/Kilo-Org/kilocode.git
synced 2026-08-28 11:05:31 +08:00
test(ci): run unit suite on macOS
This commit is contained in:
@@ -30,6 +30,8 @@ jobs:
|
||||
settings:
|
||||
- name: linux
|
||||
host: blacksmith-4vcpu-ubuntu-2404 # kilocode_change
|
||||
- name: macos
|
||||
host: macos-15 # kilocode_change
|
||||
- name: windows
|
||||
host: blacksmith-4vcpu-windows-2025 # kilocode_change
|
||||
runs-on: ${{ matrix.settings.host }}
|
||||
@@ -81,7 +83,7 @@ jobs:
|
||||
KILO_EXPERIMENTAL_DISABLE_FILEWATCHER: ${{ runner.os == 'Windows' && 'true' || 'false' }}
|
||||
|
||||
- name: Run HttpApi exerciser gates
|
||||
if: runner.os == 'Linux'
|
||||
if: runner.os != 'Windows'
|
||||
working-directory: packages/opencode
|
||||
run: bun run test:httpapi
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { afterEach, describe, expect } from "bun:test"
|
||||
import { realpath } from "node:fs/promises" // kilocode_change
|
||||
import { Deferred, Effect, Fiber, Layer } from "effect"
|
||||
import { eq } from "drizzle-orm"
|
||||
import { GlobalBus, type GlobalEvent } from "@/bus/global"
|
||||
@@ -271,7 +272,8 @@ describe("experimental HttpApi", () => {
|
||||
Effect.gen(function* () {
|
||||
const listed = yield* request(ExperimentalPaths.worktree, tmp.directory)
|
||||
expect(listed.status).toBe(200)
|
||||
expect(yield* json(listed)).toContainEqual({ directory: info.directory, managed: true }) // kilocode_change
|
||||
const directory = yield* Effect.promise(() => realpath(info.directory)) // kilocode_change
|
||||
expect(yield* json(listed)).toContainEqual({ directory, managed: true }) // kilocode_change
|
||||
|
||||
const reset = yield* request(ExperimentalPaths.worktreeReset, tmp.directory, {
|
||||
method: "POST",
|
||||
|
||||
Reference in New Issue
Block a user