From 3ae6cb41369f0d1ca3828d396177ef78c3c59ca0 Mon Sep 17 00:00:00 2001 From: Manoel Campos Date: Fri, 5 May 2023 10:45:47 -0300 Subject: [PATCH] Update build workflow to upload JaCoCo code coverage report to https://codacy.com Signed-off-by: Manoel Campos --- .github/workflows/build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b1acd14..0d78270 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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