@@ -12,55 +12,44 @@ jobs:
1212 strategy :
1313 fail-fast : false
1414 matrix :
15+ version : [8.2, 8.3, 8.4, 8.5, 8.6]
16+ oracle : [11, 18, 21, 23]
1517 include :
18+ - oracle : 11
19+ image : wnameless/oracle-xe-11g-r2
20+ port : 1511
21+ options : --name=oci
22+ - oracle : 18
23+ image : gvenzl/oracle-xe:18-slim-faststart
24+ port : 1518
25+ options : --health-cmd healthcheck.sh --health-interval 10s --health-timeout 5s --health-retries 10
26+ - oracle : 21
27+ image : gvenzl/oracle-xe:21-slim-faststart
28+ port : 1521
29+ options : --health-cmd healthcheck.sh --health-interval 10s --health-timeout 5s --health-retries 10
30+ - oracle : 23
31+ image : gvenzl/oracle-free:23-slim
32+ port : 1523
33+ options : --health-cmd healthcheck.sh --health-interval 10s --health-timeout 5s --health-retries 10
1634 - version : 8.2
17- branch : PHP-8.2
35+ branch : PHP-8.2
1836 - version : 8.3
19- branch : PHP-8.3
37+ branch : PHP-8.3
2038 - version : 8.4
21- branch : PHP-8.4
39+ branch : PHP-8.4
2240 - version : 8.5
23- branch : master
41+ branch : PHP-8.5
42+ - version : 8.6
43+ branch : master
2444 services :
25- oracle-11 :
26- image : wnameless/oracle-xe-11g-r2
45+ oracle :
46+ image : ${{ matrix.image }}
2747 ports :
28- - 1511 :1521
48+ - ${{ matrix.port }} :1521
2949 env :
3050 ORACLE_ALLOW_REMOTE : true
31- oracle-18 :
32- image : gvenzl/oracle-xe:18-slim-faststart
33- ports :
34- - 1518:1521
35- env :
36- ORACLE_PASSWORD : my_pass_18
37- options : >-
38- --health-cmd healthcheck.sh
39- --health-interval 10s
40- --health-timeout 5s
41- --health-retries 10
42- oracle-21 :
43- image : gvenzl/oracle-xe:21-slim-faststart
44- ports :
45- - 1521:1521
46- env :
47- ORACLE_PASSWORD : my_pass_21
48- options : >-
49- --health-cmd healthcheck.sh
50- --health-interval 10s
51- --health-timeout 5s
52- --health-retries 10
53- oracle-23 :
54- image : gvenzl/oracle-free:23-slim
55- ports :
56- - 1523:1521
57- env :
58- ORACLE_PASSWORD : my_pass_23
59- options : >-
60- --health-cmd healthcheck.sh
61- --health-interval 10s
62- --health-timeout 5s
63- --health-retries 10
51+ ORACLE_PASSWORD : oracle
52+ options : ${{ matrix.options }}
6453 runs-on : ubuntu-latest
6554 steps :
6655 - name : Setup dependencies
@@ -77,14 +66,15 @@ jobs:
7766 # fix debug build warning: zend_signal: handler was replaced for signal (2) after startup
7867 echo DISABLE_INTERRUPT=on > /opt/oracle/instantclient/network/admin/sqlnet.ora
7968 - name : Checkout
80- uses : actions/checkout@v4
69+ uses : actions/checkout@v6
8170 - name : Checkout php-src
82- uses : actions/checkout@v4
71+ uses : actions/checkout@v6
8372 with :
8473 repository : php/php-src
8574 ref : ${{ matrix.branch }}
8675 path : php-src
8776 - name : Setup PHP
77+ id : setup-php
8878 uses : shivammathur/setup-php@v2
8979 with :
9080 php-version : ${{matrix.version}}
@@ -97,46 +87,25 @@ jobs:
9787 echo 'extension=oci8.so' | sudo tee /etc/php/${{ matrix.version }}/mods-available/oci8.ini
9888 sudo phpenmod -v ${{ matrix.version }} oci8
9989 php --ri oci8
100- - name : Run tests /w Oracle 11
90+ - name : Run tests /w Oracle ${{ matrix.oracle }}
10191 run : php php-src/run-tests.php --show-diff --show-slow 1000 --set-timeout 120 tests
10292 env :
10393 PHP_OCI8_TEST_USER : system
10494 PHP_OCI8_TEST_PASS : oracle
105- PHP_OCI8_TEST_DB : 0.0.0.0:1511/XE
106- - name : Run tests /w Oracle 18
107- if : success() || failure()
108- run : php php-src/run-tests.php --show-diff --show-slow 1000 --set-timeout 120 tests
109- env :
110- PHP_OCI8_TEST_USER : system
111- PHP_OCI8_TEST_PASS : my_pass_18
112- PHP_OCI8_TEST_DB : 0.0.0.0:1518/XE
113- - name : Run tests /w Oracle 21
114- if : success() || failure()
115- run : php php-src/run-tests.php --show-diff --show-slow 1000 --set-timeout 120 tests
116- env :
117- PHP_OCI8_TEST_USER : system
118- PHP_OCI8_TEST_PASS : my_pass_21
119- PHP_OCI8_TEST_DB : 0.0.0.0:1521/XE
120- - name : Run tests /w Oracle 23
121- if : success() || failure()
122- run : php php-src/run-tests.php --show-diff --show-slow 1000 --set-timeout 120 tests
123- env :
124- PHP_OCI8_TEST_USER : system
125- PHP_OCI8_TEST_PASS : my_pass_23
126- PHP_OCI8_TEST_DB : 0.0.0.0:1523/FREEPDB1
95+ PHP_OCI8_TEST_DB : 0.0.0.0:${{ matrix.port }}/${{ matrix.oracle == 23 && 'FREEPDB1' || 'XE' }}
12796
12897 windows-matrix :
12998 runs-on : ubuntu-latest
13099 outputs :
131100 matrix : ${{ steps.extension-matrix.outputs.matrix }}
132101 steps :
133102 - name : Checkout
134- uses : actions/checkout@v4
103+ uses : actions/checkout@v6
135104 - name : Create matrix
136105 id : extension-matrix
137106 uses : php/php-windows-builder/extension-matrix@v1
138107 with :
139- php-version-list : ' 8.2, 8.3, 8.4, master '
108+ php-version-list : ' 8.2, 8.3, 8.4, 8.5 '
140109
141110 windows :
142111 needs : windows-matrix
@@ -146,7 +115,7 @@ jobs:
146115 matrix : ${{fromJson(needs.windows-matrix.outputs.matrix)}}
147116 steps :
148117 - name : Checkout
149- uses : actions/checkout@v4
118+ uses : actions/checkout@v6
150119 - name : Build
151120 uses : php/php-windows-builder/extension@v1
152121 with :
0 commit comments