Skip to content

Commit 08c8283

Browse files
committed
Fix CI test hanging with idiomatic solutions
Based on GitHub Actions best practices and known Bun issues: - Use ubuntu-20.04 instead of ubuntu-24.04 (more stable for runners) - Pin Bun to v1.0.4 (known stable version, v1.0.5+ had SIGABRT issues) - Add workflow timeout of 10 minutes - Add step-level timeout of 5 minutes for CLI tests - Use --frozen-lockfile for deterministic installs - Increase per-test timeout to 10 seconds The test job was added in PR #6 without proper configuration, causing the release workflow to hang indefinitely.
1 parent 9a5df67 commit 08c8283

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ on:
88

99
jobs:
1010
test:
11-
runs-on: ubuntu-24.04
11+
runs-on: ubuntu-20.04 # Use stable runner version
12+
timeout-minutes: 10 # Add timeout to prevent hanging
1213
steps:
1314
- uses: actions/checkout@v4
1415

@@ -31,14 +32,15 @@ jobs:
3132
- name: Setup Bun for CLI tests
3233
uses: oven-sh/setup-bun@v2
3334
with:
34-
bun-version: latest
35+
bun-version: 1.0.4 # Pin to known stable version
3536

3637
- name: CLI tests
38+
timeout-minutes: 5 # Add step-level timeout
3739
run: |
3840
cd packages/cli
39-
bun install
41+
bun install --frozen-lockfile
4042
bun run build
41-
bun test
43+
bun test --timeout 10000 # Increase per-test timeout to 10s
4244
4345
build-extension:
4446
needs: test

0 commit comments

Comments
 (0)