23
23
- name : Set up Maven
24
24
uses : stCarolas/setup-maven@v5
25
25
with :
26
- maven-version : 3.9.6
26
+ maven-version : 3.9.9
27
27
- name : Build with Maven
28
28
env :
29
29
BROWSER : chrome-container
@@ -36,3 +36,137 @@ jobs:
36
36
with :
37
37
github-token : ${{ secrets.GITHUB_TOKEN }}
38
38
pr-number : ${{ steps.pr.outputs.number }}
39
+ config : >
40
+ {
41
+ "tests": {
42
+ "tools": [
43
+ {
44
+ "id": "test",
45
+ "name": "Tests",
46
+ "pattern": "**/target/*-reports/TEST*.xml"
47
+ }
48
+ ],
49
+ "name": "Tests"
50
+ },
51
+ "analysis": [
52
+ {
53
+ "name": "Style",
54
+ "id": "style",
55
+ "tools": [
56
+ {
57
+ "id": "checkstyle",
58
+ "pattern": "**/target/**checkstyle-result.xml"
59
+ },
60
+ {
61
+ "id": "pmd",
62
+ "pattern": "**/target/pmd-*/pmd.xml"
63
+ }
64
+ ]
65
+ },
66
+ {
67
+ "name": "Bugs",
68
+ "id": "bugs",
69
+ "icon": "bug",
70
+ "tools": [
71
+ {
72
+ "id": "spotbugs",
73
+ "sourcePath": "src/main/java",
74
+ "pattern": "**/target/spotbugsXml.xml"
75
+ }
76
+ ]
77
+ }
78
+ ],
79
+ "coverage": [
80
+ {
81
+ "name": "Code Coverage",
82
+ "tools": [
83
+ {
84
+ "id": "jacoco",
85
+ "name": "Line Coverage",
86
+ "metric": "line",
87
+ "sourcePath": "src/main/java",
88
+ "pattern": "**/target/site/jacoco/jacoco.xml"
89
+ },
90
+ {
91
+ "id": "jacoco",
92
+ "name": "Branch Coverage",
93
+ "metric": "branch",
94
+ "sourcePath": "src/main/java",
95
+ "pattern": "**/target/site/jacoco/jacoco.xml"
96
+ }
97
+ ]
98
+ }
99
+ ],
100
+ "metrics":
101
+ {
102
+ "name": "Toplevel Metrics",
103
+ "tools": [
104
+ {
105
+ "name": "Cyclomatic Complexity",
106
+ "id": "metrics",
107
+ "pattern": "**/metrics/pmd.xml",
108
+ "metric": "CYCLOMATIC_COMPLEXITY"
109
+ },
110
+ {
111
+ "name": "Cognitive Complexity",
112
+ "id": "metrics",
113
+ "pattern": "**/metrics/pmd.xml",
114
+ "metric": "COGNITIVE_COMPLEXITY"
115
+ },
116
+ {
117
+ "name": "Lines of Code",
118
+ "id": "metrics",
119
+ "pattern": "**/metrics/pmd.xml",
120
+ "metric": "LOC"
121
+ },
122
+ {
123
+ "name": "Non Commenting Source Statements",
124
+ "id": "metrics",
125
+ "pattern": "**/metrics/pmd.xml",
126
+ "metric": "NCSS"
127
+ },
128
+ {
129
+ "name": "Access to foreign data",
130
+ "id": "metrics",
131
+ "pattern": "**/metrics/pmd.xml",
132
+ "metric": "ACCESS_TO_FOREIGN_DATA"
133
+ },
134
+ {
135
+ "name": "Class cohesion",
136
+ "id": "metrics",
137
+ "pattern": "**/metrics/pmd.xml",
138
+ "metric": "COHESION"
139
+ },
140
+ {
141
+ "name": "Fan out",
142
+ "id": "metrics",
143
+ "pattern": "**/metrics/pmd.xml",
144
+ "metric": "FAN_OUT"
145
+ },
146
+ {
147
+ "name": "Number of accessors",
148
+ "id": "metrics",
149
+ "pattern": "**/metrics/pmd.xml",
150
+ "metric": "NUMBER_OF_ACCESSORS"
151
+ },
152
+ {
153
+ "name": "Weight of a class",
154
+ "id": "metrics",
155
+ "pattern": "**/metrics/pmd.xml",
156
+ "metric": "WEIGHT_OF_CLASS"
157
+ },
158
+ {
159
+ "name": "Weighted method count",
160
+ "id": "metrics",
161
+ "pattern": "**/metrics/pmd.xml",
162
+ "metric": "WEIGHED_METHOD_COUNT"
163
+ },
164
+ {
165
+ "name": "N-Path Complexity",
166
+ "id": "metrics",
167
+ "pattern": "**/metrics/pmd.xml",
168
+ "metric": "NPATH_COMPLEXITY"
169
+ }
170
+ ]
171
+ }
172
+ }
0 commit comments