From 78c7bc16f06384a702bc54d0e23e0a29a20791a0 Mon Sep 17 00:00:00 2001 From: Joseph Mearman Date: Wed, 4 Mar 2026 15:46:01 +0000 Subject: [PATCH] chore: Add CI (#151) * Add GitHub CI workflow for lint, test, and build Runs on push to main and PRs. Uses Bun with dependency caching. Co-Authored-By: Claude Opus 4.5 * Remove branch filter on push trigger to run CI on all branches Co-Authored-By: Claude Opus 4.5 * Use bun test in CI test job --------- Co-authored-by: Claude Opus 4.5 Co-authored-by: Matthew Breedlove --- .github/workflows/ci.yml | 43 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..697dd67 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,43 @@ +name: CI + +on: + push: + pull_request: + branches: [main] + +jobs: + lint: + name: Lint & Type Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v2 + with: + cache: true + - run: bun install + - run: bun tsc --noEmit + - run: bunx eslint . --config eslint.config.js --max-warnings=999999 + + test: + name: Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v2 + with: + cache: true + - run: bun install + - run: bun test + + build: + name: Build + runs-on: ubuntu-latest + needs: [lint, test] + steps: + - uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v2 + with: + cache: true + - run: bun install + - run: bun run build + - run: test -f dist/ccstatusline.js