Skip to content

Commit 2b7543f

Browse files
committed
Display test results after each build
1 parent 5d7497c commit 2b7543f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ jobs:
2222
- java: 17
2323
sonar: false
2424
name: Build
25-
# Skip main build (JDK versions build) once the pull request is merged into master.
26-
# Once PR is merged the release-snapshot action should handle the SNAPSHOT
27-
# build and release, and publish the Sonar analysis.
28-
if: github.repository == 'sixhours-team/memcached-spring-boot' && github.event.pull_request.merged == false
25+
if: github.repository == 'sixhours-team/memcached-spring-boot'
2926
runs-on: ubuntu-latest
3027
steps:
3128
- uses: actions/checkout@v3
@@ -49,6 +46,12 @@ jobs:
4946
run: |
5047
echo "Build Branch => Branch [$GITHUB_REF_NAME]"
5148
./gradlew build
49+
- name: Publish test report
50+
uses: mikepenz/action-junit-report@v3
51+
if: success() || failure() # always run even if the previous step fails
52+
with:
53+
check_name: Test results (${{ matrix.java }})
54+
report_paths: memcached-spring-boot-autoconfigure/build/test-results/**/TEST-*.xml
5255
- name: Run code analysis
5356
if: ${{ matrix.sonar && github.event_name != 'pull_request'}}
5457
run: |

0 commit comments

Comments
 (0)