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

Run Docker compose based integration tests in CI workflow #2649

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 2 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
47 changes: 47 additions & 0 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,53 @@ jobs:
retention-days: 1


integration:
name: Execute Integration CI tests
runs-on: ubuntu-latest
needs: build
permissions:
contents: read
packages: read

steps:
# The first 2 steps (checking out, and building from Openfire Dockerfile)
# can be removed when the docker image is published to a registry.
# This 'integration' job should then need the 'build-and-push-docker' job as a dependency.
- uses: actions/checkout@v4

- name: Build Docker Image
run: |
docker build -t openfire:latest .

- name: Checkout Integration Tests
uses: actions/checkout@v4
with:
repository: surevine/openfire-integration-tests
viv marked this conversation as resolved.
Show resolved Hide resolved
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: 'zulu'
java-version: '17'
cache: 'maven'

- name: Run Integration Tests
working-directory: openfire-integration-tests
run: ./mvnw -B verify

- name: Upload test reports
uses: actions/upload-artifact@v4
if: always()
with:
name: integration-test-reports
path: openfire-integration-tests/target/failsafe-reports

aioxmpp:

name: Execute aioxmpp-based CI tests
Expand Down
Loading