Skip to content

Coverage report

Coverage report #140

Workflow file for this run

name: Coverage report
on:
workflow_run:
workflows: ["Test"]
types:
- completed
jobs:
coverage:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.event == 'pull_request' }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.workflow_run.head_commit.id }}
- name: Download Coverage Artifacts
uses: dawidd6/action-download-artifact@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
workflow: ${{ github.event.workflow_run.workflow_id }}
commit: ${{ github.event.workflow_run.head_commit.id }}
name: coverage
path: coverage
- name: Produce Coverage report
uses: ./
with:
path: coverage/cobertura-coverage.xml
minimum_coverage: 75
fail_below_threshold: true