Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display test results after each build #154

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: |
Expand Down