Skip to content

Commit

Permalink
Update build workflow to upload JaCoCo code coverage report to https:…
Browse files Browse the repository at this point in the history
…//codacy.com

Signed-off-by: Manoel Campos <[email protected]>
  • Loading branch information
manoelcampos authored and cdimascio committed Oct 5, 2024
1 parent bd434e1 commit 3ae6cb4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@ jobs:
cache: maven
- name: Build with Maven
run: mvn clean package jacoco:report
- name: Codacy coverage report upload
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
run: |
test -z $CODACY_PROJECT_TOKEN || bash <(curl -Ls https://coverage.codacy.com/get.sh) report -r target/site/jacoco/jacoco.xml

0 comments on commit 3ae6cb4

Please sign in to comment.