From a74efe039537e0e64ab0cbe284c4050b96d13018 Mon Sep 17 00:00:00 2001 From: Patrick Favre-Bulle Date: Thu, 16 Feb 2023 21:37:27 +0100 Subject: [PATCH] Change jacoco to separate stage in github actions --- .github/workflows/build_deploy.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_deploy.yml b/.github/workflows/build_deploy.yml index a3a4546..b3a8e6a 100644 --- a/.github/workflows/build_deploy.yml +++ b/.github/workflows/build_deploy.yml @@ -38,7 +38,9 @@ jobs: java-version: '17' distribution: 'temurin' - name: Build with Maven - run: ./mvnw -B clean verify -DcommonConfig.jarSign.skip=true + run: ./mvnw -B clean verify -DcommonConfig.jarSign.skip=true -Djacoco.skip=true + - name: Prepare Jacoco Coverage Report # Because of strange bug, jacoco needs to be done in separate call + run: ./mvnw -B jacoco:report - name: Analyze with SonaQube env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any @@ -94,6 +96,9 @@ jobs: distribution: 'temurin' - name: Build with Maven run: ./mvnw -B verify -DskipTests + env: + OPENSOURCE_PROJECTS_KS_PW: ${{ secrets.KEYSTORE_PASSWORD }} + OPENSOURCE_PROJECTS_KEY_PW: ${{ secrets.KEYSTORE_KEY_PASSWORD }} - name: Create and upload Github Release uses: xresloader/upload-to-github-release@v1 env: