Skip to content

Commit 8cfe89f

Browse files
committed
CI: add jacoco reports
1 parent 5391fda commit 8cfe89f

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

.github/workflows/coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
uses: actions/checkout@v4
99

1010
- name: Run tests and collect coverage
11-
run: mvn -B test
11+
run: mvn -B test jacoco:report
1212

1313
- name: Upload coverage to Codecov
1414
uses: codecov/codecov-action@v5

pom.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,26 @@
112112
</executions>
113113
</plugin>
114114

115+
<plugin>
116+
<groupId>org.jacoco</groupId>
117+
<artifactId>jacoco-maven-plugin</artifactId>
118+
<version>0.8.10</version>
119+
<executions>
120+
<execution>
121+
<goals>
122+
<goal>prepare-agent</goal>
123+
</goals>
124+
</execution>
125+
<execution>
126+
<id>report</id>
127+
<phase>test</phase>
128+
<goals>
129+
<goal>report</goal>
130+
</goals>
131+
</execution>
132+
</executions>
133+
</plugin>
134+
115135
</plugins>
116136
</build>
117137

0 commit comments

Comments
 (0)