-
Notifications
You must be signed in to change notification settings - Fork 1
103 lines (94 loc) · 4.13 KB
/
mineunit.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: mineunit
on: [push, pull_request]
jobs:
mineunit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: mineunit-metatool
uses: mt-mods/mineunit-actions@master
with:
working-directory: ./metatool
badge-name: metatool-coverage
badge-label: Metatool API Coverage
- uses: RubbaBoy/[email protected]
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/master'
with:
NAME: "${{ steps.mineunit-metatool.outputs.badge-name }}"
LABEL: "${{ steps.mineunit-metatool.outputs.badge-label }}"
STATUS: "${{ steps.mineunit-metatool.outputs.badge-status }}"
COLOR: "${{ steps.mineunit-metatool.outputs.badge-color }}"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- id: mineunit-containertool
uses: mt-mods/mineunit-actions@master
with:
working-directory: ./containertool
badge-name: containertool-coverage
badge-label: Containertool Coverage
- uses: RubbaBoy/[email protected]
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/master'
with:
NAME: "${{ steps.mineunit-containertool.outputs.badge-name }}"
LABEL: "${{ steps.mineunit-containertool.outputs.badge-label }}"
STATUS: "${{ steps.mineunit-containertool.outputs.badge-status }}"
COLOR: "${{ steps.mineunit-containertool.outputs.badge-color }}"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- id: mineunit-tubetool
uses: mt-mods/mineunit-actions@master
with:
working-directory: ./tubetool
badge-name: tubetool-coverage
badge-label: Tubetool Coverage
- uses: RubbaBoy/[email protected]
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/master'
with:
NAME: "${{ steps.mineunit-tubetool.outputs.badge-name }}"
LABEL: "${{ steps.mineunit-tubetool.outputs.badge-label }}"
STATUS: "${{ steps.mineunit-tubetool.outputs.badge-status }}"
COLOR: "${{ steps.mineunit-tubetool.outputs.badge-color }}"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- id: mineunit-sharetool
uses: mt-mods/mineunit-actions@master
with:
working-directory: ./sharetool
badge-name: sharetool-coverage
badge-label: Sharetool Coverage
- uses: RubbaBoy/[email protected]
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/master'
with:
NAME: "${{ steps.mineunit-sharetool.outputs.badge-name }}"
LABEL: "${{ steps.mineunit-sharetool.outputs.badge-label }}"
STATUS: "${{ steps.mineunit-sharetool.outputs.badge-status }}"
COLOR: "${{ steps.mineunit-sharetool.outputs.badge-color }}"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- if: success() && github.event_name == 'pull_request'
uses: KeisukeYamashita/create-comment@v1
with:
check-only-first-line: true
comment: |
<details><summary><i>Click for detailed source code test coverage report</i></summary>
### Test coverage report for Metatool API sources:
```
File Hits Missed Coverage
-----------------------------------------------------
${{ steps.mineunit-metatool.outputs.mineunit-report }}
```
### Test coverage report for Containertool sources:
```
File Hits Missed Coverage
-----------------------------------------------------
${{ steps.mineunit-containertool.outputs.mineunit-report }}
```
### Test coverage report for Tubetool sources:
```
File Hits Missed Coverage
-----------------------------------------------------
${{ steps.mineunit-tubetool.outputs.mineunit-report }}
```
### Test coverage report for Sharetool sources:
```
File Hits Missed Coverage
-----------------------------------------------------
${{ steps.mineunit-sharetool.outputs.mineunit-report }}
```
</details>