Skip to content

Commit 3659140

Browse files
fpco-40778
1 parent 065c136 commit 3659140

File tree

2 files changed

+32
-22
lines changed

2 files changed

+32
-22
lines changed

.github/workflows/call_test_cases.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
distribution: 'temurin'
2727

2828
- name: Run Maven tests and upload coverage
29-
run: mvn clean test
29+
run: mvn clean test -Pclover
3030

3131
- name: Coveralls (Uploading test report)
3232
if: ${{ github.ref == 'refs/heads/main' }}

pom.xml

Lines changed: 31 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -107,27 +107,6 @@
107107

108108
<build>
109109
<plugins>
110-
<plugin>
111-
<groupId>org.openclover</groupId>
112-
<artifactId>clover-maven-plugin</artifactId>
113-
<version>4.5.1</version>
114-
<configuration>
115-
<excludes>
116-
<exclude>**/ExampleJavaApplication.java</exclude>
117-
</excludes>
118-
</configuration>
119-
<executions>
120-
<execution>
121-
<id>clover</id>
122-
<phase>test</phase>
123-
<goals>
124-
<goal>instrument</goal>
125-
<goal>check</goal>
126-
<goal>clover</goal>
127-
</goals>
128-
</execution>
129-
</executions>
130-
</plugin>
131110
<plugin>
132111
<groupId>org.springframework.boot</groupId>
133112
<artifactId>spring-boot-maven-plugin</artifactId>
@@ -164,4 +143,35 @@
164143
</plugins>
165144
</build>
166145

146+
<profiles>
147+
<profile>
148+
<id>clover</id>
149+
<build>
150+
<plugins>
151+
<plugin>
152+
<groupId>org.openclover</groupId>
153+
<artifactId>clover-maven-plugin</artifactId>
154+
<version>4.5.1</version>
155+
<configuration>
156+
<excludes>
157+
<exclude>**/ExampleJavaApplication.java</exclude>
158+
</excludes>
159+
</configuration>
160+
<executions>
161+
<execution>
162+
<id>clover</id>
163+
<phase>test</phase>
164+
<goals>
165+
<goal>instrument</goal>
166+
<goal>check</goal>
167+
<goal>clover</goal>
168+
</goals>
169+
</execution>
170+
</executions>
171+
</plugin>
172+
</plugins>
173+
</build>
174+
</profile>
175+
</profiles>
176+
167177
</project>

0 commit comments

Comments
 (0)