-
Notifications
You must be signed in to change notification settings - Fork 180
45 lines (37 loc) · 1.33 KB
/
coverage-report.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Report Coverage
on:
workflow_run:
workflows: ['Coverage']
types:
- completed
jobs:
report:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Slugify variables
uses: rlespinasse/slugify-value@a4879db1eb3db9bbee01dca36f98a8236c2b8239 # v1.4.0
with:
key: HEAD_REF
value: ${{ github.head_ref }}
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Download Artifacts
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}
name: coverage-${{ env.HEAD_REF_SLUG }}
path: coverage
- name: Download main Artifacts
uses: actions/download-artifact@c850b930e6ba138125429b7e5c93fc707a7f8427 # v4.1.4
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@7cb62972347776255c2333807d26c60110c0df45 # v2.3.0
with:
json-summary-compare-path: coverage-main/coverage-summary.json