From 7e68a201488fe4c068c16808be1c10c033ff4f30 Mon Sep 17 00:00:00 2001 From: sidgaikwad Date: Fri, 4 Sep 2026 12:05:24 +0530 Subject: [PATCH] ci: typecheck and build the demo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The demo is aliased straight to ../src and is the project's only integration harness, but nothing in CI touched it — a change to the component's public surface could break it and still show a green build. The demo is also the live demo linked from the README, so a break there is user-facing. Add a `demo` job that installs both workspaces and runs typecheck + build, a `typecheck` script in demo/package.json to back it, and a Dependabot entry for /demo so its dependencies stop drifting behind the root. --- .github/dependabot.yml | 8 ++++++++ .github/workflows/ci.yml | 16 ++++++++++++++++ demo/package.json | 1 + 3 files changed, 25 insertions(+) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index be9972b..75fcae5 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -7,6 +7,14 @@ updates: groups: dev-dependencies: dependency-type: development + - package-ecosystem: npm + directory: /demo + schedule: + interval: weekly + groups: + demo-dependencies: + patterns: + - '*' - package-ecosystem: github-actions directory: / schedule: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a80c7c1..97c89cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,6 +26,22 @@ jobs: token: ${{ secrets.CODECOV_TOKEN }} fail_ci_if_error: false + demo: + name: Demo typecheck & build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 22 + cache: npm + # The demo aliases the package to ../src, so the root install has to + # exist for its dependencies to resolve. + - run: npm ci + - run: npm --prefix demo ci + - run: npm --prefix demo run typecheck + - run: npm --prefix demo run build + test: name: Test (Node ${{ matrix.node }}, React ${{ matrix.react }}) runs-on: ubuntu-latest diff --git a/demo/package.json b/demo/package.json index 3f8be4a..d6cdbbd 100644 --- a/demo/package.json +++ b/demo/package.json @@ -5,6 +5,7 @@ "type": "module", "scripts": { "dev": "vite", + "typecheck": "tsc --noEmit", "build": "vite build", "preview": "vite preview" },