-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.2 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
name: Integration Tests
on:
workflow_dispatch: # Allows manual triggering
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
integration-tests:
runs-on: ubuntu-latest
permissions:
contents: read
checks: write # Required for publishing test results
steps:
- name: Checkout Integration Tests
uses: actions/checkout@v4
with:
repository: surevine/openfire-integration-tests
path: integration-tests
- name: Initialize Submodules
working-directory: integration-tests
run: |
git submodule update --init
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
- name: Run Integration Tests
working-directory: 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: "integration-tests/target/surefire-reports/*.xml,integration-tests/target/failsafe-reports/*.xml"
check_name: "Integration Test Results"