Add CI workflow for lint + typecheck on push/PR
I noticed that biome check and check-types (tsc) scripts exist at the package level, but release.yml is the only GitHub Actions workflow — there's no quality gate running on push or PR.
A lightweight CI workflow that runs these existing checks would catch type errors and lint issues before they hit main. Something like:
name: CI
on:
push: { branches: [main] }
pull_request: { branches: [main] }
jobs:
quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- run: bun install --frozen-lockfile
- run: bun run check
- run: bun run check-types
No new tools, no new opinions — just automating what already exists.
I'd be happy to submit a PR if this would be useful.
Add CI workflow for lint and add typecheck on push/PR
Hey @anton-pascal — just flagging that I'm the author of this issue and the proposed solution (including the exact workflow YAML). Since then, three separate PRs have been submitted implementing this:
- #176 by @nnhhoang (Mar 26)
- #192 by @hellozzm (Mar 28)
- #208 by @claygeo (Apr 2)
All three are implementing the spec I wrote here. @claygeo's PR #208 is the most polished — they correctly identified that bun run lint should be used instead of bun run check to avoid the 191 pre-existing format violations, which is a smart call.
Happy for any of these to land (the point is getting CI in place), but wanted to make sure the provenance is visible. Let me know if you'd prefer I submit my own PR instead.
Thanks for the heads-up @jeremylongshore — appreciate the provenance call-out.
For visibility: @Aymericr shipped #369 about an hour ago (https://github.com/pascalorg/editor/pull/369) which added the workflow and closed this issue. It's a slightly different shape from the three external PRs (28-line workflow + a few drive-by typecheck fixes that were blocking the gate), but the spirit matches what you laid out here.
PRs #192 and #208 are now stale dupes — leaving them open for their authors to decide on, but happy to close them out if that's helpful.