Skip to content
Merged
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
8 changes: 3 additions & 5 deletions .github/workflows/ci-ratchet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading