Skip to content

Commit

Permalink
https://github.com/hyperledger-labs/business-partner-agent/issues/764
Browse files Browse the repository at this point in the history
Signed-off-by: Philipp Etschel <[email protected]>
  • Loading branch information
etschelp committed Aug 12, 2022
1 parent 0791b59 commit fe9012e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,16 @@ jobs:
- name: Test with Maven
run: mvn -f backend/pom.xml test spotbugs:check pmd:check pmd:cpd-check license:check dependency-check:check -Ddependency-check.skip=false

- name: Add code coverage report to PR
id: jacoco
uses: madrapps/[email protected]
if: ${{ github.ref != 'refs/heads/main' && github.event_name == 'pull_request' }}
with:
paths: ${{ github.workspace }}/backend/business-partner-agent/target/site/jacoco/jacoco.xml
token: ${{ secrets.GITHUB_TOKEN }}
# min-coverage-overall: 40
# min-coverage-changed-files: 60

# Attribution Phase

- name: Frontend attribution
Expand Down
19 changes: 19 additions & 0 deletions backend/business-partner-agent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,25 @@
</excludedScopes>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.8</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit fe9012e

Please sign in to comment.