Skip to content

Commit

Permalink
Merge pull request #8 from WROracer/testCoverage
Browse files Browse the repository at this point in the history
added upload for code coverage
  • Loading branch information
WROracer committed May 30, 2023
2 parents 3d13cb0 + 61c5a4f commit d9b662e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Expand Up @@ -41,6 +41,12 @@ jobs:
with:
name: jar
path: target/*.jar
- name: Report test coverage to DeepSource
uses: deepsourcelabs/test-coverage-action@master
with:
key: python
coverage-file: ./target/site/jacoco/jacoco.xml
dsn: ${{ secrets.DEEPSOURCE_DSN }}
release:
if: 'startsWith(github.event.head_commit.message, ''#'')'
needs: build
Expand Down
23 changes: 18 additions & 5 deletions pom.xml
Expand Up @@ -32,12 +32,25 @@
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.0</version>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.10</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<!-- attached to Maven test phase -->
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>

</plugins>
</build>

</project>

0 comments on commit d9b662e

Please sign in to comment.