[github] WIP: Add sinttest-openfire workflow #2
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: CI | |
on: | |
push: | |
pull_request: | |
merge_group: | |
jobs: | |
build: | |
name: Run Smack's integration tests against openfire | |
runs-on: ubuntu-24.04 | |
services: | |
docker: | |
image: docker:dind | |
options: --privileged --shm-size=2g | |
volumes: | |
- /var/run/docker.sock:/var/run/docker.sock:ro | |
strategy: | |
matrix: | |
java: | |
- 17 | |
- 21 | |
env: | |
PRIMARY_JAVA_VERSION: 21 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up JDK ${{ matrix.java }} | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.java }} | |
distribution: temurin | |
# Caches | |
- name: Cache Maven | |
uses: actions/cache@v2 | |
with: | |
path: ~/.m2/repository | |
key: maven-${{ hashFiles('**/build.gradle') }} | |
restore-keys: | | |
maven- | |
- name: Cache Gradle | |
uses: actions/cache@v2 | |
with: | |
path: ~/.gradle/caches | |
key: gradle-caches-${{ hashFiles('**/build.gradle') }} | |
restore-keys: | |
gradle-caches | |
- name: Cache Android SDK | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.android/sdk | |
key: android-${{ hashFiles('build.gradle') }} | |
restore-keys: | | |
android- | |
# Pre-reqs | |
- name: Install GraphViz | |
run: sudo apt update && sudo apt install graphviz | |
- name: Install Android SDK Manager | |
uses: android-actions/setup-android@v3 | |
- name: Install Android SDK | |
run: | | |
sdkmanager "platforms;android-26" | |
- name: Install Docker | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y docker.io | |
- name: Test Docker | |
run: | | |
docker version | |
docker info | |
- name: | |
run: | | |
docker run ghcr.io/igniterealtime/openfire:main |