Skip to content

Commit

Permalink
WIP coverage uploading [skip-release]
Browse files Browse the repository at this point in the history
  • Loading branch information
tompahoward committed Nov 9, 2020
1 parent ee20a89 commit b663a97
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,15 @@ jobs:

steps:
- uses: actions/download-artifact@v2
- run: ls -l
- run: ls -l coverage
- run: ls code-coverage-report-chrome
- run: curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- run: chmod +x ./cc-test-reporter
- run: ./cc-test-reporter format-coverage -t lcov -o coverage/full/codeclimate.json coverage/full/lcov.info
- run: ./cc-test-reporter upload-coverage -i coverage/full/codeclimate.json
- run: |
for directory in $(ls -d code-coverage-report-*); do
./cc-test-reporter format-coverage -t lcov -o ${directory}-codeclimate.json ${directory}/lcov.info
done
- run: ./cc-test-reporter sum-coverage *-codeclimate.json -o code-coverage-report-full-codeclimate.json
- run: ./cc-test-reporter upload-coverage -i code-coverage-report-full-codeclimate.json
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}

Expand Down

0 comments on commit b663a97

Please sign in to comment.