From 6545d4efa10717d7bf8d5df1c4013294079ed7de Mon Sep 17 00:00:00 2001 From: nicomiguelino Date: Fri, 1 May 2026 11:58:35 -0700 Subject: [PATCH 1/4] ci: add test workflow - Run on push to main and all pull requests - Use Bun 1.3.11 to install dependencies and run tests --- .github/workflows/test.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..75a4c52 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: Test + +on: + push: + branches: + - main + pull_request: + branches: + - "**" + +jobs: + test: + name: Test + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v6 + + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: 1.3.11 + + - name: Install dependencies + run: bun install + + - name: Run tests + run: bun run test From 1035bc324b0245c80874acd1dff00f1a86dffafc Mon Sep 17 00:00:00 2001 From: Nico Miguelino Date: Fri, 1 May 2026 12:23:14 -0700 Subject: [PATCH 2/4] Update .github/workflows/test.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 75a4c52..12aa6db 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,7 +22,7 @@ jobs: bun-version: 1.3.11 - name: Install dependencies - run: bun install + run: bun install --frozen-lockfile - name: Run tests run: bun run test From 81b7caddb02bcb6309a9ba999c159790ba32f27a Mon Sep 17 00:00:00 2001 From: nicomiguelino Date: Fri, 1 May 2026 12:28:11 -0700 Subject: [PATCH 3/4] ci(workflows): use --frozen-lockfile for bun install - Apply --frozen-lockfile to lint, build, and format workflows - Ensures CI fails fast if lockfile is out of sync --- .github/workflows/build.yml | 2 +- .github/workflows/format.yml | 2 +- .github/workflows/lint.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 39a45cb..ed6624e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,7 @@ jobs: bun-version: 1.3.11 - name: Install dependencies - run: bun install + run: bun install --frozen-lockfile - name: Build run: bun run build diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 81e7ce6..ccdb763 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -22,7 +22,7 @@ jobs: bun-version: 1.3.11 - name: Install dependencies - run: bun install + run: bun install --frozen-lockfile - name: Run formatting check run: bun run format:check diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 02fac3e..d64efbf 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -22,7 +22,7 @@ jobs: bun-version: 1.3.11 - name: Install dependencies - run: bun install + run: bun install --frozen-lockfile - name: Run linting run: bun run lint From 4ce2c6431386eada8643b7a7786eff77bb572e5c Mon Sep 17 00:00:00 2001 From: nicomiguelino Date: Fri, 1 May 2026 12:37:24 -0700 Subject: [PATCH 4/4] ci(workflows): consolidate CI workflows into a single ci.yml - Merge lint, build, format, and test workflows into one file - Jobs run in parallel with the same triggers - Restrict pull_request trigger to main branch only - Use --frozen-lockfile consistently across all jobs --- .github/workflows/build.yml | 28 ------------ .github/workflows/ci.yml | 82 ++++++++++++++++++++++++++++++++++++ .github/workflows/format.yml | 28 ------------ .github/workflows/lint.yml | 28 ------------ .github/workflows/test.yml | 28 ------------ 5 files changed, 82 insertions(+), 112 deletions(-) delete mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/ci.yml delete mode 100644 .github/workflows/format.yml delete mode 100644 .github/workflows/lint.yml delete mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml deleted file mode 100644 index ed6624e..0000000 --- a/.github/workflows/build.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Build - -on: - push: - branches: - - main - pull_request: - branches: - - "**" - -jobs: - build: - name: Build - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v6 - - - name: Setup Bun - uses: oven-sh/setup-bun@v2 - with: - bun-version: 1.3.11 - - - name: Install dependencies - run: bun install --frozen-lockfile - - - name: Build - run: bun run build diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..42d0165 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,82 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v6 + + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: 1.3.11 + + - name: Install dependencies + run: bun install --frozen-lockfile + + - name: Run linting + run: bun run lint + + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v6 + + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: 1.3.11 + + - name: Install dependencies + run: bun install --frozen-lockfile + + - name: Build + run: bun run build + + format: + name: Format + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v6 + + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: 1.3.11 + + - name: Install dependencies + run: bun install --frozen-lockfile + + - name: Run formatting check + run: bun run format:check + + test: + name: Test + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v6 + + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: 1.3.11 + + - name: Install dependencies + run: bun install --frozen-lockfile + + - name: Run tests + run: bun run test diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml deleted file mode 100644 index ccdb763..0000000 --- a/.github/workflows/format.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Format - -on: - push: - branches: - - main - pull_request: - branches: - - "**" - -jobs: - format: - name: Format - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v6 - - - name: Setup Bun - uses: oven-sh/setup-bun@v2 - with: - bun-version: 1.3.11 - - - name: Install dependencies - run: bun install --frozen-lockfile - - - name: Run formatting check - run: bun run format:check diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml deleted file mode 100644 index d64efbf..0000000 --- a/.github/workflows/lint.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Lint - -on: - push: - branches: - - main - pull_request: - branches: - - "**" - -jobs: - lint: - name: Lint - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v6 - - - name: Setup Bun - uses: oven-sh/setup-bun@v2 - with: - bun-version: 1.3.11 - - - name: Install dependencies - run: bun install --frozen-lockfile - - - name: Run linting - run: bun run lint diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 12aa6db..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: Test - -on: - push: - branches: - - main - pull_request: - branches: - - "**" - -jobs: - test: - name: Test - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v6 - - - name: Setup Bun - uses: oven-sh/setup-bun@v2 - with: - bun-version: 1.3.11 - - - name: Install dependencies - run: bun install --frozen-lockfile - - - name: Run tests - run: bun run test