Skip to content

fix: Ignore test report summary just use detailed reports #7

fix: Ignore test report summary just use detailed reports

fix: Ignore test report summary just use detailed reports #7

name: Integration Tests
on:
workflow_dispatch: # Allows manual triggering
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
build-and-test:
runs-on: ubuntu-latest
permissions:
contents: read
checks: write # Required for publishing test results
packages: read # Required for pulling base images
steps:
- name: Checkout Openfire
uses: actions/checkout@v4
with:
repository: igniterealtime/Openfire
path: openfire
- name: Checkout Integration Tests
uses: actions/checkout@v4
with:
repository: surevine/openfire-integration-tests
path: openfire-integration-tests
- name: Initialize Integration Tests Submodules
working-directory: openfire-integration-tests
run: |
git submodule update --init
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
- name: Build Openfire
working-directory: openfire
run: |
# Skip tests and just package - we just want a Docker image
./mvnw -B -DskipTests clean package
- name: Build Docker Image
working-directory: openfire
run: |
docker build -t openfire:latest .
- name: Run Integration Tests
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
with:
files: |
openfire-integration-tests/target/failsafe-reports/TEST-*.xml
!openfire-integration-tests/target/failsafe-reports/failsafe-summary.xml
check_name: "Integration Test Results"