Skip to content

Commit 99a1f3e

Browse files
committed
chore: update github action & report test coverage
1 parent 33a882d commit 99a1f3e

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.github/workflows/maven.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will build a Java project with Maven
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
33

4-
name: Java CI with Maven
4+
name: Build and Test Pipeline
55

66
on:
77
push:
@@ -21,5 +21,9 @@ jobs:
2121
with:
2222
java-version: '17'
2323
distribution: 'adopt'
24+
2425
- name: Build with Maven
25-
run: mvn -B package --file pom.xml
26+
run: mvn --batch-mode --update-snapshots test jacoco:report --file pom.xml
27+
28+
- name: 🚀 Coveralls Coverage Report Submission
29+
run: mvn coveralls:report --define repoToken=${{ secrets.COVERALL_REPO_TOKEN }}

pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,18 @@
266266
<allowInsecureRegistries>true</allowInsecureRegistries>
267267
</configuration>
268268
</plugin>
269+
<plugin>
270+
<groupId>io.jsonwebtoken.coveralls</groupId>
271+
<artifactId>coveralls-maven-plugin</artifactId>
272+
<version>4.4.1</version>
273+
<dependencies>
274+
<dependency>
275+
<groupId>javax.xml.bind</groupId>
276+
<artifactId>jaxb-api</artifactId>
277+
<version>2.3.1</version>
278+
</dependency>
279+
</dependencies>
280+
</plugin>
269281
</plugins>
270282
</build>
271283
</project>

0 commit comments

Comments
 (0)