Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: CI

on:
pull_request:
push:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install --frozen-lockfile
- run: bun run typecheck
- run: bun test
4 changes: 2 additions & 2 deletions src/confirm-regression.integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ d("confirmation regressions (real tmux)", () => {
// The command actually executed in the pane.
await Bun.sleep(300);
const pane = spawnSync("tmux", ["capture-pane", "-t", SESSION, "-p"], { encoding: "utf8" }).stdout;
expect(pane).toContain("open-dispatch");
expect(pane).toContain(process.cwd());
}, 20000);

test("busy agent that queues the message is reported delivered + queued (not failed)", async () => {
Expand Down Expand Up @@ -140,6 +140,6 @@ d("confirmation regressions (real tmux)", () => {
// Mode exited and the command executed.
expect(spawnSync("tmux", ["display-message", "-p", "-t", SESSION, "#{pane_in_mode}"], { encoding: "utf8" }).stdout.trim()).toBe("0");
const pane = spawnSync("tmux", ["capture-pane", "-t", SESSION, "-p"], { encoding: "utf8" }).stdout;
expect(pane).toContain("open-dispatch");
expect(pane).toContain(process.cwd());
}, 20000);
});
Loading