Skip to content

Commit 6daf907

Browse files
committed
Add workaround for a possible bug of cc-test-reporter
codeclimate/test-reporter#495 (comment)
1 parent 91daa53 commit 6daf907

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
- run: bundle exec rake
2828
- name: Format coverage
2929
run: |
30+
# Workaround for https://github.com/codeclimate/test-reporter/issues/495
31+
jq 'map_values(. | map_values(if type=="object" then map_values(.lines) else . end))' coverage/.resultset.json
3032
./cc-test-reporter format-coverage --input-type simplecov --output 'codeclimate-${{ matrix.ruby-version }}.json' coverage/.resultset.json
3133
- uses: actions/upload-artifact@v3
3234
with:

0 commit comments

Comments
 (0)