chore(ci): add lint step + stop swallowing docs-check failures

CI was already running type-check, but the IntegrationNote bug class
(undefined identifier referenced in JSX) is an eslint catch, not a
tsc catch. Adding an explicit Lint step so `next lint` runs on every
push and PR.

Separately, the existing "Docs hygiene checks" step ended in
`|| echo "Docs checks reported issues. Review output above."` which
collapses any future non-zero exit into a successful step. If docs
checks ever start enforcing rules they have to fail visibly — removed
the swallowing.

Note: this still depends on a branch-protection rule on main
requiring CI green before merge. The previous broken commits landed
on main because no such rule was in place; the workflow file alone
cannot enforce it.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Georgy ButaevandClaude Opus 4.7 committed 2026-06-02 17:39:58 +02:00
1 parent 73b78af758
commit 652bb8659b
1 file changed
+9 -1
+9 -1
View File
@@ -33,11 +33,19 @@ jobs:
run: npm ci
- name: Docs hygiene checks
run: npm run ci:docs || echo "Docs checks reported issues. Review output above."
# Don't swallow failures with `|| echo` — that turned this into a no-op
# gate. If docs checks legitimately need to be advisory, mark the step
# `continue-on-error: true` so the noise is explicit in the UI.
run: npm run ci:docs
- name: Type check
run: npm run type-check
- name: Lint
# Catches the bug class that landed on main as `IntegrationNote` —
# eslint would have flagged the undefined identifier before merge.
run: npm run lint
- name: Unit tests
run: npm run test:unit -- --watchAll=false