-
Notifications
You must be signed in to change notification settings - Fork 25
125 lines (106 loc) · 4.59 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
name: mineunit
on: [push, pull_request]
jobs:
mineunit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- id: mineunit
uses: mt-mods/mineunit-actions@master
with:
working-directory: ./technic
mineunit-args: --engine-version 5.4.1
badge-label: Test coverage
- uses: RubbaBoy/[email protected]
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/master'
with:
NAME: "${{ steps.mineunit.outputs.badge-name }}"
LABEL: "${{ steps.mineunit.outputs.badge-label }}"
STATUS: "${{ steps.mineunit.outputs.badge-status }}"
COLOR: "${{ steps.mineunit.outputs.badge-color }}"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- id: mineunit-cnc
uses: mt-mods/mineunit-actions@master
with:
working-directory: ./technic_cnc
badge-name: coverage-cnc
badge-label: Test coverage
- uses: RubbaBoy/[email protected]
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/master'
with:
NAME: "${{ steps.mineunit-cnc.outputs.badge-name }}"
LABEL: "${{ steps.mineunit-cnc.outputs.badge-label }}"
STATUS: "${{ steps.mineunit-cnc.outputs.badge-status }}"
COLOR: "${{ steps.mineunit-cnc.outputs.badge-color }}"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- id: mineunit-chests
uses: mt-mods/mineunit-actions@master
with:
working-directory: ./technic_chests
badge-name: coverage-chests
badge-label: Test coverage
- uses: RubbaBoy/[email protected]
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/master'
with:
NAME: "${{ steps.mineunit-chests.outputs.badge-name }}"
LABEL: "${{ steps.mineunit-chests.outputs.badge-label }}"
STATUS: "${{ steps.mineunit-chests.outputs.badge-status }}"
COLOR: "${{ steps.mineunit-chests.outputs.badge-color }}"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: KeisukeYamashita/create-comment@v1
if: success() && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
with:
check-only-first-line: true
comment: |
<details><summary><i>Click for detailed source code test coverage report</i></summary>
### Test coverage report for Technic CNC ${{ steps.mineunit-cnc.outputs.coverage-total }} in ${{ steps.mineunit-cnc.outputs.coverage-files }} files:
```
File Hits Missed Coverage
-----------------------------------------------------
${{ steps.mineunit-cnc.outputs.mineunit-report }}
```
### Test coverage report for technic chests ${{ steps.mineunit-chests.outputs.coverage-total }} in ${{ steps.mineunit-chests.outputs.coverage-files }} files:
```
File Hits Missed Coverage
----------------------------------
${{ steps.mineunit-chests.outputs.mineunit-report }}
```
### Test coverage report for technic ${{ steps.mineunit.outputs.coverage-total }} in ${{ steps.mineunit.outputs.coverage-files }} files:
```
File Hits Missed Coverage
--------------------------------------------------------------
${{ steps.mineunit.outputs.mineunit-report }}
```
### Raw test runner output for geeks:
CNC:
```
${{ steps.mineunit-cnc.outputs.mineunit-stdout }}
```
Chests:
```
${{ steps.mineunit-chests.outputs.mineunit-stdout }}
```
Technic:
```
${{ steps.mineunit.outputs.mineunit-stdout }}
```
</details>
- uses: KeisukeYamashita/create-comment@v1
if: failure() && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
with:
check-only-first-line: true
comment: |
<details><summary><i>Mineunit failed regression tests, click for details</i></summary>
### Regression test log for Technic CNC:
```
${{ steps.mineunit-cnc.outputs.mineunit-stdout }}
```
### Regression test log for Technic Chests:
```
${{ steps.mineunit-chests.outputs.mineunit-stdout }}
```
### Regression test log for Technic:
```
${{ steps.mineunit.outputs.mineunit-stdout }}
```
</details>