feat(ci): run JS tests in CI, add npm run check in ws root

This commit is contained in:
ethernet 2026-07-03 19:28:13 -04:00
parent c44de99854
commit 7b3f3047ab
12 changed files with 32 additions and 22 deletions

View file

@ -70,11 +70,11 @@ jobs:
with:
event_name: ${{ needs.detect.outputs.event_name }}
typecheck:
name: TypeScript
js-tests:
name: JS & TS checks
needs: detect
if: needs.detect.outputs.frontend == 'true'
uses: ./.github/workflows/typecheck.yml
uses: ./.github/workflows/js-tests.yml
docs-site:
name: Docs Site
@ -139,7 +139,7 @@ jobs:
needs:
- tests
- lint
- typecheck
- js-tests
- docs-site
- history-check
- contributor-check

View file

@ -1,12 +1,12 @@
# .github/workflows/typecheck.yml
name: Typecheck
# .github/workflows/js-tests.yml
name: JS Tests
on:
workflow_call:
jobs:
typecheck:
name: Check TypeScript
check:
name: Typecheck & Test
runs-on: ubuntu-latest
strategy:
matrix:
@ -19,14 +19,11 @@ jobs:
with:
node-version: 22
cache: npm
# --ignore-scripts: typecheck only needs the TS sources + type defs, not
# native builds. Skipping install scripts drops node-pty's node-gyp
# header fetch — the transient flake that killed this job pre-`tsc` — and
# is faster. retry covers the remaining registry blips.
- uses: ./.github/actions/retry
with:
# --ignore-scripts: TS & tests don't need native deps
command: npm ci --ignore-scripts
- run: npm run --prefix ${{ matrix.package }} typecheck
- run: npm run --prefix ${{ matrix.package }} check
# Production build of the desktop renderer. `typecheck` runs `tsc` only,
# which does NOT exercise Vite/Rolldown module resolution — so an