mirror of https://github.com/dapr/java-sdk.git
Add CodeCov GitHub action and badge. (#339)
* Add CodeCov GitHub action and badge. * Change comment behavior and exclude sdk-tests.
This commit is contained in:
parent
f6b56bb376
commit
9240ae81db
|
@ -0,0 +1,6 @@
|
||||||
|
ignore:
|
||||||
|
- examples
|
||||||
|
- sdk-tests
|
||||||
|
comment:
|
||||||
|
# Delete old comment and post new one for new coverage information.
|
||||||
|
behavior: new
|
|
@ -98,6 +98,8 @@ jobs:
|
||||||
run: mvn compile -q
|
run: mvn compile -q
|
||||||
- name: Unit tests
|
- name: Unit tests
|
||||||
run: mvn test -q
|
run: mvn test -q
|
||||||
|
- name: Codecov
|
||||||
|
uses: codecov/codecov-action@v1
|
||||||
- name: Install jars
|
- name: Install jars
|
||||||
run: mvn install -q
|
run: mvn install -q
|
||||||
- name: Integration tests
|
- name: Integration tests
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
[](https://github.com/dapr/java-sdk/actions?workflow=Build)
|
[](https://github.com/dapr/java-sdk/actions?workflow=Build)
|
||||||
[](https://gitter.im/Dapr/java-sdk?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
|
[](https://gitter.im/Dapr/java-sdk?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
|
||||||
|
[](https://codecov.io/gh/dapr/java-sdk)
|
||||||
[](https://opensource.org/licenses/MIT)
|
[](https://opensource.org/licenses/MIT)
|
||||||
|
|
||||||
This is the Dapr SDK for Java, including the following features:
|
This is the Dapr SDK for Java, including the following features:
|
||||||
|
|
24
pom.xml
24
pom.xml
|
@ -76,6 +76,25 @@
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.jacoco</groupId>
|
||||||
|
<artifactId>jacoco-maven-plugin</artifactId>
|
||||||
|
<version>0.8.6</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<goals>
|
||||||
|
<goal>prepare-agent</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>report</id>
|
||||||
|
<phase>test</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>report</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-gpg-plugin</artifactId>
|
<artifactId>maven-gpg-plugin</artifactId>
|
||||||
|
@ -191,6 +210,11 @@
|
||||||
|
|
||||||
<reporting>
|
<reporting>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>cobertura-maven-plugin</artifactId>
|
||||||
|
<version>2.7</version>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-project-info-reports-plugin</artifactId>
|
<artifactId>maven-project-info-reports-plugin</artifactId>
|
||||||
|
|
Loading…
Reference in New Issue