Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 16 additions & 9 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,22 @@ jobs:
tests:
runs-on: ubuntu-latest

services:
oracle:
image: deepdiver/docker-oracle-xe-11g:2.0
ports:
- 49160:22
- 1521:1521

strategy:
fail-fast: true
matrix:
php: [8.2, 8.3, 8.4, 8.5]
stability: [prefer-stable]
oracle: [11g, 21c]

name: PHP ${{ matrix.php }} - STABILITY ${{ matrix.stability }}
name: PHP ${{ matrix.php }} - ORACLE ${{ matrix.oracle }} - STABILITY ${{ matrix.stability }}

services:
oracle:
image: ${{ matrix.oracle == '11g' && 'deepdiver/docker-oracle-xe-11g:2.0' || 'container-registry.oracle.com/database/express:21.3.0-xe' }}
ports:
- 1521:1521
env:
ORACLE_PWD: ${{ matrix.oracle == '21c' && 'oracle' || '' }}

steps:
- name: Checkout code
Expand All @@ -48,4 +50,9 @@ jobs:
command: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress

- name: Execute tests
run: vendor/bin/phpunit
run: |
if [ "${{ matrix.oracle }}" = "21c" ]; then
SERVER_VERSION=12c vendor/bin/phpunit
else
vendor/bin/phpunit
fi
1 change: 1 addition & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ protected function getEnvironmentSetUp($app): void
'username' => 'system',
'password' => 'oracle',
'port' => 1521,
'server_version' => getenv('SERVER_VERSION') ? getenv('SERVER_VERSION') : '11g',
]);
}

Expand Down