Skip to content

Coverage Report

Coverage Report #779

name: Coverage Report
on:
workflow_run:
workflows: ['Coverage']
types:
- completed
jobs:
report:
runs-on: ubuntu-latest
permissions:
# Required to put a comment into the pull-request
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Download Artifacts
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}
name: coverage-${{ github.event.workflow_run.id }}
path: coverage
- name: Download main Artifacts
uses: actions/download-artifact@65a9edc5881444af0b9093a5e628f2fe47ea3b2e # v4.1.7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}
name: coverage-main
path: coverage-main
- name: Report Coverage
uses: davelosert/vitest-coverage-report-action@1c46e624fc42799d6b1090de7decc8b967784fce # v2.3.1
with:
file-coverage-mode: all
json-summary-compare-path: coverage-main/coverage-summary.json