Skip to content

Commit

Permalink
Add workaround for a possible bug of cc-test-reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
manicmaniac committed Nov 5, 2022
1 parent 91daa53 commit 7deddf9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ jobs:
- run: bundle exec rake
- name: Format coverage
run: |
./cc-test-reporter format-coverage --input-type simplecov --output 'codeclimate-${{ matrix.ruby-version }}.json' coverage/.resultset.json
# Workaround for https://github.com/codeclimate/test-reporter/issues/495
jq 'map_values(. | map_values(if type=="object" then map_values(.lines) else . end))' coverage/.resultset.json > coverage/workaround.resultset.json
./cc-test-reporter format-coverage --input-type simplecov --output 'codeclimate-${{ matrix.ruby-version }}.json' workaround.resultset.json
- uses: actions/upload-artifact@v3
with:
name: coverages
Expand Down

0 comments on commit 7deddf9

Please sign in to comment.