Add features to serverinfo #284
Workflow file for this run
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
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
name: PHP Integration (Keycloak compatibility) | |
jobs: | |
Integration: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
keycloak: [17.0.0, 18.0.0, 19.0.0, 20.0.0, 21.0.0, 22.0.0, 22.0.5] | |
env: | |
KEYCLOAK_VERSION: ${{ matrix.keycloak }} | |
KEYCLOAK_BASE_URL: 'http://localhost:8080' | |
XDEBUG_MODE: coverage | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build Keycloak image | |
run: > | |
docker build | |
--build-arg KEYCLOAK_VERSION=${{ matrix.keycloak }} | |
-t keycloak:${{ matrix.keycloak }} | |
docker/keycloak | |
- name: Start Keycloak container | |
run: > | |
docker run -d | |
-p 8080:8080 | |
-e KEYCLOAK_ADMIN=admin | |
-e KEYCLOAK_ADMIN_PASSWORD=admin | |
--name keycloak | |
keycloak:${{ matrix.keycloak }} | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress | |
- name: Wait for Keycloak | |
uses: iFaxity/wait-on-action@v1 | |
with: | |
resource: ${{ env.KEYCLOAK_BASE_URL }} | |
- name: Run integration tests | |
run: vendor/bin/phpunit --testsuite integration |