From 093c511bd668d83cad1d8258b56a1b6e6200adb2 Mon Sep 17 00:00:00 2001 From: Gilberto <37253958+gilsmt@users.noreply.github.com> Date: Mon, 21 Sep 2026 16:45:43 +0000 Subject: [PATCH 1/2] chore(ci): add the type-check, lint and test gate for main Co-authored-by: polylane[bot] <277585245+polylane[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 63 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 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 00000000..442d6e33 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,63 @@ +# Continuous integration gate for cache-app. +# +# CONTRIBUTING.md requires every pull request to pass the type-check, lint and +# test suites. A commit on `main` reaches production through Vercel and no +# automated check runs on the way, so this workflow is where those suites run. +# Mark it required on `main` in the branch protection settings to block merges. +# +# `next typegen` runs before the type-check: next-env.d.ts and the route types +# are generated files that .gitignore excludes, so a fresh checkout cannot +# type-check until they exist. +# +# DATABASE_URL only has to satisfy `prisma generate`, which .postinstall runs +# during install. The workflow does not build or connect to a database. + +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +permissions: + contents: read + +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + +jobs: + checks: + name: Type-check, lint and test + runs-on: ubuntu-latest + env: + DATABASE_URL: postgresql://cache:cache@localhost:5432/cache + steps: + - name: Checkout + uses: actions/checkout@v6 + + - name: Setup Bun + uses: oven-sh/setup-bun@v2 + with: + bun-version: 1.4.2 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + + - name: Install dependencies + run: bun install --frozen-lockfile + + - name: Generate Next.js types + run: bunx next typegen + + - name: Type-check + run: bun run type-check + + - name: Lint + run: bun run lint + + - name: Test + run: bun run test From 97879c2b333321f90e3e8139862e76a5a72c8457 Mon Sep 17 00:00:00 2001 From: Gilberto <37253958+gilsmt@users.noreply.github.com> Date: Mon, 21 Sep 2026 16:52:03 +0000 Subject: [PATCH 2/2] fix(notes): drop the SerializedElementNode type argument lexical 0.51 removed Co-authored-by: polylane[bot] <277585245+polylane[bot]@users.noreply.github.com> --- .github/workflows/ci.yml | 2 +- lib/integrations/notes/utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 442d6e33..ee0b9750 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,7 +43,7 @@ jobs: bun-version: 1.4.2 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v7 with: node-version-file: .nvmrc diff --git a/lib/integrations/notes/utils.ts b/lib/integrations/notes/utils.ts index 70511bcb..70b6b8ed 100644 --- a/lib/integrations/notes/utils.ts +++ b/lib/integrations/notes/utils.ts @@ -17,7 +17,7 @@ export const NOTE_EMPTY_HTML = "
"; export type NoteSerializedEditorState = SerializedEditorState; -type NoteSerializedElementNode = SerializedElementNode