Skip to content

Initial commit

Initial commit #6

Workflow file for this run

name: CI Check
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
openfire-version: [ '4.9.0', '4.8.4' ]
daily-build: [ 'false', 'true' ]
steps:
- uses: actions/checkout@v4
- name: Run Openfire
uses: ./
with:
version: ${{ matrix.openfire-version }}
daily: ${{ matrix.daily-build }}
- run: |
echo "Checking Openfire Admin Console"
OPENFIRE_CONSOLE=$(curl -s -o /dev/null -I -w "%{http_code}^%header{Location}" http://127.0.0.1:9090/index.jsp)
RESPONSE_CODE=$(echo $OPENFIRE_CONSOLE | cut -d'^' -f1)
LOCATION=$(echo $OPENFIRE_CONSOLE | cut -d'^' -f2)
if [ $RESPONSE_CODE -ne 302 ] | [ $LOCATION != 'http://127.0.0.1:9090/login.jsp?url=%2Findex.jsp' ]; then
echo "Openfire Admin Console is not available"
echo "Response code: $RESPONSE_CODE and Location: $LOCATION"
exit 1
fi