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
38 changes: 38 additions & 0 deletions .github/workflows/typecheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# The type gate. There is no test suite in this repo to run.
#
# Until MX-222 this repo's only CI job was `managed-install`, which proves the
# plugin BUILDS from a git install and says nothing about whether it works:
# `bb plugin build` bundles WITHOUT typechecking, so a type error anywhere in
# server.ts (34k) or app.tsx still produced a green check.
#
# This is a SEPARATE job rather than more steps on managed-install, because
# that job installs `--omit=dev` — typescript and @types/* are absent by the
# time it ends.
#
# What a green run here covers: `tsc --noEmit` under `strict` with
# `skipLibCheck: false`, over server.ts, app.tsx, components, lib, hooks and
# types. What it does NOT cover: this repo has ZERO test files, so no line of
# it is ever EXECUTED in CI. Green means it compiles, not that it works — a
# weaker claim than the sibling plugins' Test job, and deliberately named so.
name: Typecheck

on:
pull_request:
push:
branches: [main, main-public]
workflow_dispatch:

jobs:
typecheck:
name: tsc --noEmit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
# `npm ci` rather than `npm install`: it installs the lockfile exactly and
# fails when package.json and package-lock.json disagree, so CI checks the
# tree a fresh clone would get.
- run: npm ci --no-audit --no-fund
- run: npm run typecheck
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"name": "bb-plugin-system",
"version": "0.1.0",
"type": "module",
"scripts": {
"typecheck": "tsc --noEmit"
},
"engines": {
"bb": ">=0.36",
"bbPluginSdk": "^0.4.1"
Expand Down
Loading