Skip to content

Commit 087e555

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

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ jobs:
2727
- run: bundle exec rake
2828
- name: Format coverage
2929
run: |
30-
./cc-test-reporter format-coverage --input-type simplecov --output 'codeclimate-${{ matrix.ruby-version }}.json' coverage/.resultset.json
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 > coverage/workaround.resultset.json
32+
./cc-test-reporter format-coverage --input-type simplecov --output 'codeclimate-${{ matrix.ruby-version }}.json' coverage/workaround.resultset.json
3133
- uses: actions/upload-artifact@v3
3234
with:
3335
name: coverages

0 commit comments

Comments
 (0)