Skip to content

Commit 4e1093f

Browse files
committed
ci: use unbuffer to allocate TTY and propagate exit codes
Install expect package and use unbuffer for bun test to ensure pseudo-TTY allocation and proper exit code propagation in CI, causing the job to fail when tests fail.
1 parent f40087e commit 4e1093f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,11 @@ jobs:
4747
- name: Build
4848
run: bun run build:all:prod
4949

50+
- name: Install expect
51+
run: sudo apt-get update && sudo apt-get install -y expect
52+
5053
- name: Run tests
51-
run: script -q -c "bun test" /dev/null
54+
run: unbuffer bun test
5255

5356
dependency-review:
5457
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)