Skip to content

Commit

Permalink
fix coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
areyouok committed Apr 16, 2024
1 parent a1613b5 commit 790eb50
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
cache: maven
- name: Build with coveralls report
if: ${{ env.cov_token != '' }}
run: mvn -B -DjacocoReports=jetcache-test/target/site/jacoco-aggregate/jacoco.xml clean test org.jacoco:jacoco-maven-plugin:0.8.8:report-aggregate org.eluder.coveralls:coveralls-maven-plugin:4.3.0:report -DrepoToken=${{ secrets.COV_TOKEN }} -Dtick=3
run: mvn -B -DjacocoReports=jetcache-test/target/site/jacoco-aggregate/jacoco.xml clean install org.eluder.coveralls:coveralls-maven-plugin:4.3.0:report -DrepoToken=${{ secrets.COV_TOKEN }} -Dtick=3
- name: Build without coveralls report
if: ${{ env.cov_token == '' }}
run: mvn -B clean test
6 changes: 6 additions & 0 deletions jetcache-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.8</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report-aggregate</id>
<phase>verify</phase>
Expand Down
13 changes: 0 additions & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,6 @@
</properties>
<build>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.8</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
Expand Down

0 comments on commit 790eb50

Please sign in to comment.