Skip to content

Commit

Permalink
rewrite coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
chinelo-obitube authored and chinelo-obitube committed Jul 20, 2024
1 parent 5cb4586 commit 0967fde
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -290,14 +290,17 @@ jobs:
run: chmod +x cc-test-reporter

- name: Save coverage
env:
GITHUB_JOB_NAME: ${{ github.job }}
run: |
cc-test-reporter format-coverage --output coverage/codeclimate.${{ matrix.ruby }}.json
aws s3 cp ..coverage/codeclimate.${{ matrix.ruby }}.json s3://check-api-travis/codeclimate/coverage/codeclimate.${{ matrix.ruby }}.json
./test/cc-test-reporter format-coverage -t simplecov --output ../coverage/codeclimate.$GITHUB_JOB_NAME.json ../coverage/.resultset.json
# cc-test-reporter format-coverage --output coverage/codeclimate.${{ matrix.ruby }}.json --debug
aws s3 cp ..coverage/codeclimate.GITHUB_JOB_NAME.json s3://check-api-travis/codeclimate/coverage/codeclimate.GITHUB_JOB_NAME.json
- uses: actions/upload-artifact@v1
with:
name: coverage-${{ matrix.ruby }}
path: coverage/codeclimate.${{ matrix.ruby }}.json
path: coverage/codeclimate.GITHUB_JOB_NAME.json

- uses: actions/download-artifact@v1
with:
Expand Down

0 comments on commit 0967fde

Please sign in to comment.