Skip to content
Draft
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
58 changes: 44 additions & 14 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,13 @@ jobs:
node-version: 24
cache: 'npm'

- name: 📥 Download deps
run: npm install --prefer-offline --no-audit --no-fund
- name: 🥖 Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.1

- name: 📥 Download deps (bun)
run: bun install

- name: 🔬 Lint
run: npm run lint
Expand All @@ -47,8 +52,13 @@ jobs:
node-version: 24
cache: 'npm'

- name: 📥 Download deps
run: npm install --prefer-offline --no-audit --no-fund
- name: 🥖 Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.1

- name: 📥 Download deps (bun)
run: bun install

- name: 🏗 Build
run: npm run build
Expand All @@ -60,8 +70,8 @@ jobs:
NODE_ENV: production

# run install again so the local .bin files get where they should go.
- name: 📥 Download deps
run: npm install --prefer-offline --no-audit --no-fund
- name: 📥 Download deps (bun)
run: bun install

- name: 📦 Upload All Build Artifacts
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -90,14 +100,19 @@ jobs:
node-version: 24
cache: 'npm'

- name: 🥖 Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.1

- name: 📥 Download All Build Artifacts
uses: actions/download-artifact@v4
with:
name: all-build-artifacts
path: packages

- name: 📥 Download deps
run: npm install --prefer-offline --no-audit --no-fund
- name: 📥 Download deps (bun)
run: bun install

- name: 🧪 Run tests
run: npm test -- --no-watch
Expand All @@ -117,14 +132,19 @@ jobs:
node-version: 24
cache: 'npm'

- name: 🥖 Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.1

- name: 📥 Download All Build Artifacts
uses: actions/download-artifact@v4
with:
name: all-build-artifacts
path: packages

- name: 📥 Download deps
run: npm install --prefer-offline --no-audit --no-fund
- name: 📥 Download deps (bun)
run: bun install

- name: 🔎 Type check
run: npm run typecheck
Expand All @@ -144,14 +164,19 @@ jobs:
node-version: 24
cache: 'npm'

- name: 🥖 Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.1

- name: 📥 Download All Build Artifacts
uses: actions/download-artifact@v4
with:
name: all-build-artifacts
path: packages

- name: 📥 Download deps
run: npm install --prefer-offline --no-audit --no-fund
- name: 📥 Download deps (bun)
run: bun install

- name: 📦 Cache Playwright Browsers
uses: actions/cache@v4
Expand Down Expand Up @@ -196,14 +221,19 @@ jobs:
node-version: 24
cache: 'npm'

- name: 🥖 Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: 1.3.1

- name: 📥 Download All Build Artifacts
uses: actions/download-artifact@v4
with:
name: all-build-artifacts
path: packages

- name: 📥 Download deps
run: npm install --prefer-offline --no-audit --no-fund
- name: 📥 Download deps (bun)
run: bun install

- name: ▶️ Run setup script
run: node setup.mjs
Expand Down
20 changes: 20 additions & 0 deletions bun-migration-debug.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[2025-10-23T00:00:00Z] Bun migration started

Plan:
- Assess repo scripts and Node assumptions
- Install Bun runtime
- Install dependencies with Bun at repo root (will trigger example postinstall via npm)
- Build packages with Bun in dependency order: workshop-utils → workshop-presence → workshop-app → workshop-cli
- Run targeted tests with Bun (workshop-utils)
- Provide commands to run dev server with Bun (cannot run long-lived dev server here)

Notes:
- Keep Node available for CLI and server runtime; focus on using Bun for install/run.
- Log each action and outcome here.

[2025-10-23T00:05:00Z] Installed Bun version 1.3.1
[2025-10-23T00:07:00Z] bun install completed at repo root; example postinstall executed via npm
[2025-10-23T00:12:00Z] Built packages with Bun: workshop-utils, workshop-presence, workshop-app, workshop-cli
[2025-10-23T00:14:00Z] bun test failed in workshop-utils (vi.mocked not supported); switch to vitest via bunx
[2025-10-23T00:16:00Z] bunx vitest run succeeded in workshop-utils, workshop-cli, workshop-presence, workshop-mcp
[2025-10-23T00:22:00Z] Updated CI workflow validate.yml to install Bun (oven-sh/setup-bun@v2) and use bun install in all jobs to prevent "/bin/sh: 1: bun: not found" errors.
Loading
Loading