Skip to content

Commit

Permalink
fix: Display test reports in UI
Browse files Browse the repository at this point in the history
Also using same Java as core Openfire workflows
  • Loading branch information
viv committed Jan 6, 2025
1 parent 9993ac8 commit 40e874a
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ on:

jobs:
build-and-test:
name: Run Integration Tests
runs-on: ubuntu-latest
permissions:
contents: read
checks: write # Required for publishing test results
packages: read # Required for pulling base images

steps:
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
distribution: 'zulu'
java-version: '17'
cache: 'maven'

Expand All @@ -55,11 +55,9 @@ jobs:
working-directory: openfire-integration-tests
run: ./mvnw -B verify

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always() # Run even if tests fail
- name: Upload test reports
uses: actions/upload-artifact@v4
if: always()
with:
files: |
openfire-integration-tests/target/failsafe-reports/TEST-*.xml
!openfire-integration-tests/target/failsafe-reports/failsafe-summary.xml
check_name: "Integration Test Results"
name: failsafe-reports
path: openfire-integration-tests/target/failsafe-reports

0 comments on commit 40e874a

Please sign in to comment.