From 2b7543f6bd660b69e33d51b31344d22dbcc6b16a Mon Sep 17 00:00:00 2001 From: Igor Bolic Date: Mon, 27 Mar 2023 11:06:58 +0200 Subject: [PATCH] Display test results after each build --- .github/workflows/build.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4c0057b..c149405 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,10 +22,7 @@ jobs: - java: 17 sonar: false name: Build - # Skip main build (JDK versions build) once the pull request is merged into master. - # Once PR is merged the release-snapshot action should handle the SNAPSHOT - # build and release, and publish the Sonar analysis. - if: github.repository == 'sixhours-team/memcached-spring-boot' && github.event.pull_request.merged == false + if: github.repository == 'sixhours-team/memcached-spring-boot' runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -49,6 +46,12 @@ jobs: run: | echo "Build Branch => Branch [$GITHUB_REF_NAME]" ./gradlew build + - name: Publish test report + uses: mikepenz/action-junit-report@v3 + if: success() || failure() # always run even if the previous step fails + with: + check_name: Test results (${{ matrix.java }}) + report_paths: memcached-spring-boot-autoconfigure/build/test-results/**/TEST-*.xml - name: Run code analysis if: ${{ matrix.sonar && github.event_name != 'pull_request'}} run: |