Skip to content

Commit a70b74f

Browse files
authored
ci: fix coverage badge command (#1038)
## Summary - fix coverage badge script in GitHub Actions to pass required flags ## Testing - `bundle exec rubocop` *(fails: bundler: command not found: rubocop)* - `bin/ci` *(fails: bundler: command not found: rails)* - `bundle exec brakeman -q -w2` *(fails: bundler: command not found: brakeman)* - `bundle exec bundler-audit --update` *(fails: bundler: command not found: bundler-audit)* - `bin/codex_style_guard` *(fails: bundler: command not found: rubocop)* ------ https://chatgpt.com/codex/tasks/task_e_689c72c076548321a2b96c7431330f4e
2 parents aaea780 + 3c8e585 commit a70b74f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/rubyonrails.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ jobs:
9595
run: |
9696
COVERAGE=$(jq -r '.result.covered_percent' coverage/.last_run.json)
9797
COLOR=$(node -e "cov=parseFloat(process.argv[1]);console.log(cov>=90?'green':cov>=75?'orange':'red')" $COVERAGE)
98-
npx badgen-cli coverage ${COVERAGE}% -c $COLOR > coverage.svg
98+
npx badgen-cli --subject coverage --status ${COVERAGE}% --color $COLOR > coverage.svg
9999
100100
- name: Commit badge
101101
if: ${{ github.ref == 'refs/heads/main' && success() }}

0 commit comments

Comments
 (0)