Skip to content

Commit a08d31a

Browse files
knowledgecodeclaude
andcommitted
Add debug steps to troubleshoot badge color issue
Add debugging output to identify why coverage badge remains black: - Show actual coverage percentage value - Display fromJSON conversion result - Check condition evaluations - Verify final color calculation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 0a1e232 commit a08d31a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ jobs:
5454
run: |
5555
echo "pct=$(jq '.total.lines.pct' coverage/coverage-summary.json)" >> $GITHUB_OUTPUT
5656
57+
- name: Debug coverage values
58+
run: |
59+
echo "Coverage percentage: ${{ steps.coverage.outputs.pct }}"
60+
echo "fromJSON result: ${{ fromJSON(steps.coverage.outputs.pct) }}"
61+
echo "Condition >= 80: ${{ fromJSON(steps.coverage.outputs.pct) >= 80 }}"
62+
echo "Condition >= 60: ${{ fromJSON(steps.coverage.outputs.pct) >= 60 }}"
63+
echo "Final color: ${{ fromJSON(steps.coverage.outputs.pct) >= 80 && 'brightgreen' || fromJSON(steps.coverage.outputs.pct) >= 60 && 'yellow' || 'red' }}"
64+
5765
- name: Create badges directory
5866
run: mkdir -p badges
5967

0 commit comments

Comments
 (0)