fix: fix test report paths #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
junit_files: "openfire-integration-tests/target/failsafe-reports/*.xml" | |
check_name: "Integration Test Results" |