Skip to content

code coverage

code coverage #62

Workflow file for this run

name: code coverage
on:
workflow_run:
workflows:
- build
types:
- completed
jobs:
code-climate:
name: Send code coverage report to Code Climate
runs-on: ubuntu-latest
if: >
(
github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.event == 'pull_request' &&
github.repository_owner == 'JimiC' &&
github.actor != 'dependabot[bot]'
)
steps:
- name: Cloning repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.workflow_run.head_sha }}
- name: Download artifact
uses: dawidd6/action-download-artifact@v2
with:
run_id: ${{ github.event.workflow_run.id }}
name: code-coverage-report
- name: Uploading code coverage report
uses: paambaati/codeclimate-action@v5
with:
coverageLocations: lcov.info:lcov
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}