message: Add coverage merging and publishing to Codeclimate
diff: @@ -70,3 +70,16 @@ jobs:
  fi
  npm run frisby
  shell: bash
  + - name: "Publish coverage to Codeclimate"
  + if: matrix.os == 'ubuntu-latest' && matrix.node-version == '14.x'
  + env:
  + CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
  + run: |
  + curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
  + chmod +x ./cc-test-reporter
  + sed -i 's/SF:/SF:frontend\\//g' build/reports/coverage/frontend-tests/lcov.info
  + ./cc-test-reporter format-coverage -t lcov -o build/reports/coverage/codeclimate.frontend.json build/reports/coverage/frontend-tests/lcov.info
  + ./cc-test-reporter format-coverage -t lcov -o build/reports/coverage/codeclimate.server.json build/reports/coverage/server-tests/lcov.info
  + ./cc-test-reporter format-coverage -t lcov -o build/reports/coverage/codeclimate.api.json build/reports/coverage/api-tests/lcov.info
  + ./cc-test-reporter sum-coverage build/reports/coverage/codeclimate.*.json -p 3
  + ./cc-test-reporter upload-coverage
  