-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (48 loc) · 1.47 KB
/
integration-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Integration Tests
on:
workflow_dispatch: # Allows manual triggering
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
build-and-test:
name: Run Integration Tests
runs-on: ubuntu-latest
permissions:
contents: read
packages: read # Required for pulling base images
steps:
# This and the following step will be replaced with image pull when Openfire publishes to registry
- name: Checkout Openfire
uses: actions/checkout@v4
with:
repository: igniterealtime/Openfire
path: openfire
- name: Build Docker Image
working-directory: openfire
run: |
docker build -t openfire:latest .
- name: Checkout Integration Tests
uses: actions/checkout@v4
with:
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: failsafe-reports
path: openfire-integration-tests/target/failsafe-reports