Skip to content

BBC2-41 add GitHub Actions workflow to run bun test on PRs#11

Merged
b2l merged 1 commit into
mainfrom
b2lpowa/bbc2-41-run-tests-on-ci-for-every-pr
Apr 15, 2026
Merged

BBC2-41 add GitHub Actions workflow to run bun test on PRs#11
b2l merged 1 commit into
mainfrom
b2lpowa/bbc2-41-run-tests-on-ci-for-every-pr

Conversation

@b2l
Copy link
Copy Markdown
Owner

@b2l b2l commented Apr 14, 2026

Summary

  • Adds .github/workflows/ci.yml.
  • Triggers: every PR (opened/synchronized/reopened) and every push to main.
  • Steps: checkout → setup-bun@v2 pinned to 1.3.11 → bun install --frozen-lockfilebunx tsc --noEmitbun test.
  • concurrency cancels superseded runs on the same ref so rapid pushes don't queue duplicate jobs.
  • Typecheck runs before tests: bun test doesn't catch type errors on its own; putting tsc first fails fast.

Manual follow-up

Requiring CI to pass before merge is a GitHub branch-protection setting, not something this PR can enable. After landing, configure at https://github.com/b2l/bbcli/settings/branches → add a rule for main → require the test check.

Test plan

  • bunx tsc --noEmit — clean
  • bun test — 128 pass
  • This PR's own CI run is green (validates the workflow end-to-end)

@b2l b2l merged commit fdeed16 into main Apr 15, 2026
1 check failed
@b2l b2l deleted the b2lpowa/bbc2-41-run-tests-on-ci-for-every-pr branch April 15, 2026 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant