Skip to content

Commit b9fa0e7

Browse files
knowledgecodeclaude
andcommitted
Fix badge color and remove debug code
- Change brightgreen to green for badge-action compatibility - Remove debug steps that were used to troubleshoot color issue - Keep flat style as requested 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a08d31a commit b9fa0e7

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,6 @@ 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-
6557
- name: Create badges directory
6658
run: mkdir -p badges
6759

@@ -70,7 +62,7 @@ jobs:
7062
with:
7163
label: 'coverage'
7264
status: ${{ steps.coverage.outputs.pct }}%
73-
color: ${{ fromJSON(steps.coverage.outputs.pct) >= 80 && 'brightgreen' || fromJSON(steps.coverage.outputs.pct) >= 60 && 'yellow' || 'red' }}
65+
color: ${{ fromJSON(steps.coverage.outputs.pct) >= 80 && 'green' || fromJSON(steps.coverage.outputs.pct) >= 60 && 'yellow' || 'red' }}
7466
path: badges/coverage.svg
7567
style: flat
7668

0 commit comments

Comments
 (0)