Skip to content

Commit

Permalink
feat: add codecov plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
xiezhx9 committed Sep 25, 2024
1 parent 700c649 commit cc01060
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/java_unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,7 @@ jobs:
distribution: 'temurin'
- name: unit tests
run: mvn -B clean test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# bookkeeper-admin-java

![License](https://img.shields.io/badge/license-Apache2.0-green) ![Language](https://img.shields.io/badge/language-Java-blue.svg) [![version](https://img.shields.io/github/v/tag/protocol-laboratory/bookkeeper-admin-java?label=release&color=blue)](https://github.com/protocol-laboratory/bookkeeper-admin-java/releases) [![codecov](https://codecov.io/gh/protocol-laboratory/bookkeeper-admin-java/branch/main/graph/badge.svg)](https://codecov.io/gh/protocol-laboratory/bookkeeper-admin-java)

This is a Java library that provides an HTTP client built using the built-in HTTP client of the JDK to interact with the Bookkeeper HTTP API.

Features:
Expand Down
21 changes: 21 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<puppycrawl.version>10.18.0</puppycrawl.version>
<reactor-netty.version>1.1.22</reactor-netty.version>
<!-- plugin -->
<jacoco-maven-plugin.version>0.8.12</jacoco-maven-plugin.version>
<lombok-maven-plugin.version>1.18.20.0</lombok-maven-plugin.version>
<maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version>
<maven-checkstyle-plugin.version>3.5.0</maven-checkstyle-plugin.version>
Expand Down Expand Up @@ -91,6 +92,26 @@
<build>
<sourceDirectory>${src.dir}</sourceDirectory>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco-maven-plugin.version}</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
Expand Down

0 comments on commit cc01060

Please sign in to comment.