Skip to content

Commit 358a02d

Browse files
authored
Unify CI with pdo_oci repo (#28)
1 parent ed46b32 commit 358a02d

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,18 @@ jobs:
3333
ports:
3434
- 1518:1521
3535
env:
36-
ORACLE_PASSWORD: my_pass
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
3748
options: >-
3849
--health-cmd healthcheck.sh
3950
--health-interval 10s
@@ -44,7 +55,7 @@ jobs:
4455
ports:
4556
- 1523:1521
4657
env:
47-
ORACLE_PASSWORD: my_pass
58+
ORACLE_PASSWORD: my_pass_23
4859
options: >-
4960
--health-cmd healthcheck.sh
5061
--health-interval 10s
@@ -97,14 +108,21 @@ jobs:
97108
run: php php-src/run-tests.php --show-diff --show-slow 1000 --set-timeout 120 tests
98109
env:
99110
PHP_OCI8_TEST_USER: system
100-
PHP_OCI8_TEST_PASS: my_pass
101-
PHP_OCI8_TEST_DB: 0.0.0.0:1518/FREEPDB1
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
102120
- name: Run tests /w Oracle 23
103121
if: success() || failure()
104122
run: php php-src/run-tests.php --show-diff --show-slow 1000 --set-timeout 120 tests
105123
env:
106124
PHP_OCI8_TEST_USER: system
107-
PHP_OCI8_TEST_PASS: my_pass
125+
PHP_OCI8_TEST_PASS: my_pass_23
108126
PHP_OCI8_TEST_DB: 0.0.0.0:1523/FREEPDB1
109127

110128
windows-matrix:

0 commit comments

Comments
 (0)