-
Notifications
You must be signed in to change notification settings - Fork 51
35 lines (32 loc) · 1004 Bytes
/
coverage.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
name: Coverage
on:
workflow_run:
workflows: [ "CI" ]
types:
- completed
jobs:
coverage:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.event == 'pull_request' }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.workflow_run.head_commit.id }}
- name: Download Coverage Artifacts
uses: dawidd6/[email protected]
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: 5monkeys/cobertura-action@master
with:
path: coverage/cobertura-coverage.xml
repo_token: ${{ secrets.GITHUB_TOKEN }}
minimum_coverage: 100
show_missing: true
show_line: true
show_branch: true