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
32 changes: 32 additions & 0 deletions .github/workflows/typecheck-client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Typecheck Client

on:
push:
branches:
- main
pull_request:

permissions:
contents: read

concurrency:
group: typecheck-client-${{ github.ref }}
cancel-in-progress: true

jobs:
typecheck-client:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm

- name: Install dependencies
run: npm ci

- name: Run client typecheck
run: npm run typecheck:client
7 changes: 5 additions & 2 deletions docs/skills/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

| Command | Purpose |
|---------|---------|
| `npm run typecheck:client` | Cheap client-only compile gate; safe while prod is live |
| `npm test` | Coordinated full suite (`vitest run` plus `vitest run --config vitest.server.config.ts`) |
| `npm run test:all` | Alias for the same coordinated full suite |
| `npm run check` | Run `typecheck`, then the coordinated full suite |
Expand All @@ -31,12 +32,14 @@

1. Run `npm run test:status` if you need to know whether another agent is already holding the coordinated gate.
2. Set `FRESHELL_TEST_SUMMARY="why this run matters"` before broad runs so holder/status output is readable.
3. Use the narrowest truthful public command you can.
4. If another holder is active, wait rather than killing a foreign process.
3. Use `npm run typecheck:client` when you only need the cheap frontend compile gate.
4. Use the narrowest truthful public command you can.
5. If another holder is active, wait rather than killing a foreign process.

## Focused Examples

```bash
npm run typecheck:client
FRESHELL_TEST_SUMMARY="Verify coordinated full suite" npm test
npm run test:server -- --help
npm run test:server -- --run
Expand Down
Loading