Skip to content

Commit a0b6bad

Browse files
committed
feat: add-ci-workflow - GitHub Actions workflow for CI checks
1 parent 898af0a commit a0b6bad

3 files changed

Lines changed: 36 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
ci:
11+
name: CI
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout Repo
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Bun
18+
uses: oven-sh/setup-bun@v2
19+
20+
- name: Install Dependencies
21+
run: bun install
22+
23+
- name: Typecheck
24+
run: bun run typecheck
25+
26+
- name: Test
27+
run: bun test

todo/LEARNINGS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,11 @@ Use this knowledge to avoid repeating mistakes and build on what works.
4747
- Added `concurrency` setting to prevent parallel runs on the same branch which could cause race conditions
4848
- The `oven-sh/setup-bun@v2` action sets up Bun in GitHub Actions - use v2 for latest features
4949
- Pre-existing test failure (1 fail, 86 pass) still present - unrelated to workflow changes
50+
51+
## add-ci-workflow
52+
53+
- CI workflow is separate from release workflow - CI runs on all PRs and pushes, release only on main branch merges
54+
- Followed the same pattern as release.yml for consistency: checkout -> setup-bun -> bun install -> run tasks
55+
- The workflow triggers on both `push` to main and all `pull_request` events (any branch)
56+
- Steps are sequential (typecheck then test) since we want to fail fast on type errors before running tests
57+
- Pre-existing test failure (1 fail, 86 pass) still present - the "dry-run mode skips git operations" test expects a "Skipping git branch creation" message that isn't being logged

todo/TASKS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Each agent picks the next pending task, implements it, and marks it complete.
5959
### add-ci-workflow
6060

6161
- content: Create `.github/workflows/ci.yml` that runs on all PRs and pushes. Jobs should: 1) Install dependencies with `bun install`, 2) Run typechecking with `bun run typecheck`, 3) Run tests with `bun test`. Use ubuntu-latest and setup-bun action.
62-
- status: pending
62+
- status: complete
6363
- dependencies: none
6464

6565
---

0 commit comments

Comments
 (0)