Skip to content
Merged
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
63 changes: 63 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: CI

on:
pull_request:
branches: [main, develop]

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify Bun version alignment between repository metadata and CI workflow
echo "=== Checking packageManager in package.json ==="
rg -n '"packageManager"\s*:\s*"bun@' package.json

echo "=== Checking bun-version in CI workflow ==="
rg -n 'bun-version:' .github/workflows/ci.yml

echo "=== Full context for each bun-version occurrence ==="
rg -B2 -A2 'bun-version:' .github/workflows/ci.yml

Repository: weroperking/Betterbase

Length of output: 695


Pin Bun version in CI to match package.json instead of latest.

Currently, the CI workflow uses bun-version: latest while package.json specifies "packageManager": "bun@1.3.9". Using latest can cause flaky or sudden breakage. Update all three jobs to align with the pinned toolchain.

Proposed change
-          bun-version: latest
+          bun-version: 1.3.9

Apply to all three jobs (lines 18, 39, 57).

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
bun-version: latest
bun-version: 1.3.9
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/ci.yml at line 18, The workflow uses bun-version: latest
which conflicts with package.json's packageManager: "bun@1.3.9" and can cause
flaky CI; update all occurrences of the bun-version key in the CI workflow jobs
(the three bun-version entries currently set to "latest") to pin the version to
1.3.9 to match package.json so the toolchain is consistent across jobs.


- name: Install dependencies
run: bun install --frozen-lockfile

- name: Build project
run: bun run build

- name: Run tests
run: bun run test

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

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

- name: Install dependencies
run: bun install --frozen-lockfile

- name: Run lint
run: bun run lint

typecheck:
name: Typecheck
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

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

- name: Install dependencies
run: bun install --frozen-lockfile

- name: Run typecheck
run: bun run typecheck
3 changes: 0 additions & 3 deletions .kilocode/mcp.json

This file was deleted.

Loading