Skip to content

Commit

Permalink
Update ci-pr to record failed tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
corneil committed Aug 23, 2024
1 parent 6cad8f0 commit 5e7fa1b
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/ci-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,24 @@ jobs:
with:
java-version: '17'
distribution: 'liberica'
- uses: jvalkeal/setup-maven@v1
- name: Login dockerhub
if: ${{ secrets.DOCKERHUB_USERNAME != null && secrets.DOCKERHUB_USERNAME != '' }}
uses: docker/login-action@v3
with:
maven-version: 3.8.8
maven-mirror: 'https://dlcdn.apache.org/maven/maven-3/'
# - name: Login dockerhub
# if: ${{ secrets.DOCKERHUB_USERNAME != null && secrets.DOCKERHUB_USERNAME != '' }}
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# build
- name: Build
run: |
mvn -B -s .github/settings.xml clean install
./mvnw -B -s .github/settings.xml -Pfull,asciidoctordocs,restdocs clean install
- name: Test Report
uses: dorny/test-reporter@v1
if: ${{ success() || failure() }}
with:
name: Unit Tests
path: '**/surefire-reports/*.xml'
reporter: java-junit
list-tests: failed
- name: Capture Test Results
if: failure()
uses: actions/upload-artifact@v3
Expand Down

0 comments on commit 5e7fa1b

Please sign in to comment.