From 652bb8659bf0fe85af360f48cf9fee13a4b2d164 Mon Sep 17 00:00:00 2001 From: Georgy Butaev <41178744+g-but@users.noreply.github.com> Date: Tue, 2 Jun 2026 17:39:58 +0200 Subject: [PATCH] chore(ci): add lint step + stop swallowing docs-check failures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2fdeb3a6f..5f2d69532 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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