-
Notifications
You must be signed in to change notification settings - Fork 22
54 lines (43 loc) · 1.26 KB
/
php-integration.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
46
47
48
49
50
51
52
53
54
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
name: PHP Integration (Keycloak compatibility)
jobs:
Integration:
runs-on: ubuntu-latest
strategy:
matrix:
keycloak: [ 24.0.0, 25.0.0, 26.0.0 ]
php: [ 8.1 ]
env:
KEYCLOAK_VERSION: ${{ matrix.keycloak }}
KEYCLOAK_BASE_URL: 'http://localhost:8080'
XDEBUG_MODE: coverage
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Start Keycloak container
run: >
docker run -d
-p 8080:8080
-e KEYCLOAK_ADMIN=admin
-e KEYCLOAK_ADMIN_PASSWORD=admin
--name keycloak
quay.io/keycloak/keycloak:${{ matrix.keycloak }}
start-dev
- name: Install dependencies
run: composer install --prefer-dist --no-progress
- name: Wait for Keycloak
uses: iFaxity/wait-on-action@v1
with:
resource: http-get://localhost:8080
timeout: 30000
- name: Wait some more for Keycloak 24.0.0 zZz
if: ${{ matrix.keycloak == '24.0.0' }}
run: sleep 5
- name: Run integration tests
run: vendor/bin/phpunit --testsuite integration