Skip to content

Hurl tests with CI #274

Hurl tests with CI

Hurl tests with CI #274

Workflow file for this run

# Version 2023-03-05
name: Java CI
on: [push, pull_request]
jobs:
build:
uses: igniterealtime/openfire-plugin-builder-action/.github/workflows/openfire-plugin-build.yml@main
secrets:
IGNITE_REALTIME_MAVEN_USERNAME: ${{ secrets.IGNITE_REALTIME_MAVEN_USERNAME }}
IGNITE_REALTIME_MAVEN_PASSWORD: ${{ secrets.IGNITE_REALTIME_MAVEN_PASSWORD }}
test:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout tests
uses: actions/checkout@v4
with:
sparse-checkout: |
test
- name: Download the built plugin
uses: actions/download-artifact@v4
with:
name: restAPI
path: .
- name: Rename plugin
run: |
mv restAPI-openfire-plugin-assembly.jar restAPI.jar
- name: Run Openfire
uses: igniterealtime/[email protected]
with:
version: 4.9.0
config: ./test/demoboot-with-additions.xml
plugin: ./restAPI.jar
- uses: gacts/install-hurl@v1
- name: Test the plugin
run: |
# Wait for the server to start
sleep 30
# Test the plugin
hurl --test --variables-file test/test.env test/restAPI.hurl
- name: Expose Openfire logs
uses: actions/upload-artifact@v4
if: always() # always run even if the previous step fails
with:
name: Openfire server logs
path: openfire/logs/*