From 41ffca9457f39b78128a659ce321e92c99ad3f9a Mon Sep 17 00:00:00 2001 From: Doug Fennell Date: Tue, 11 Nov 2025 09:17:28 -0600 Subject: [PATCH] ci: enforce health gate (remove continue-on-error; run ratchet:context normally) --- .github/workflows/ci-ratchet.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci-ratchet.yml b/.github/workflows/ci-ratchet.yml index 080260b..15ccfb4 100644 --- a/.github/workflows/ci-ratchet.yml +++ b/.github/workflows/ci-ratchet.yml @@ -29,17 +29,15 @@ jobs: run: npm run analyze:current - name: Ratchet (fail on new debt) - continue-on-error: ${{ github.event_name == 'pull_request' && startsWith(github.head_ref, 'feat/health-gating') }} run: npm run ratchet - - name: Context-aware ratchet (telemetry only) - continue-on-error: true + - name: Health gate (context-aware ratchet) run: | # Prefer script if available, otherwise fallback to direct invocation if npm run -s | grep -q "ratchet:context"; then - npm run ratchet:context || true + npm run ratchet:context else - node scripts/ratchet.js --mode=context --baseline=analysis-baseline.json --current=analysis-current.json || true + node scripts/ratchet.js --mode=context --baseline=analysis-baseline.json --current=analysis-current.json fi - name: Run tests