diff --git a/.github/workflows/pr-build.yaml b/.github/workflows/pr-build.yaml index 6283e35e6..83a4a1f83 100644 --- a/.github/workflows/pr-build.yaml +++ b/.github/workflows/pr-build.yaml @@ -30,11 +30,29 @@ jobs: - name: Build Managers source code run: | + set -o pipefail gradle -b galasa-managers-parent/build.gradle check publish --info \ -Dorg.gradle.jvmargs=-Xmx4096M \ -PsourceMaven=https://development.galasa.dev/gh/maven-repo/extensions \ -PcentralMaven=https://repo.maven.apache.org/maven2/ \ - -PtargetMaven=${{github.workspace}}/repo + -PtargetMaven=${{github.workspace}}/repo 2>&1 | tee build.log + + - name: Upload Gradle Build Log + if: failure() + uses: actions/upload-artifact@v4 + with: + name: gradle-build-log + path: build.log + retention-days: 7 + + - name: Upload Jacoco Report + if: failure() + uses: actions/upload-artifact@v4 + with: + name: jacoco-report + path: ${{github.workspace}}/galasa-managers-parent/**/**/build/reports/**/*.html + retention-days: 7 + if-no-files-found: ignore - name: Build Managers image for testing uses: docker/build-push-action@v5