Skip to content

Commit 0c47916

Browse files
committed
Trying to fix Oracle tests
1 parent 552c2e4 commit 0c47916

File tree

1 file changed

+32
-31
lines changed

1 file changed

+32
-31
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -362,39 +362,40 @@ jobs:
362362
- name: "Generating comparison"
363363
run: "./phpbench.dist.sh report --uuid=tag:current_pr --uuid=tag:master --report='{extends: compare, compare: tag}'"
364364

365-
# phpunit-oci8:
366-
# name: "PHPUnit on OCI8"
367-
# runs-on: "ubuntu-latest"
368-
#
369-
# strategy:
370-
# matrix:
371-
# php-version:
372-
# - "7.4"
373-
#
365+
phpunit-oci8:
366+
name: "PHPUnit on OCI8"
367+
runs-on: "ubuntu-latest"
368+
container: "moufmouf/oracle-xe-php:7.4-11g"
369+
370+
strategy:
371+
matrix:
372+
php-version:
373+
- "7.4"
374+
374375
# services:
375376
# oracle:
376377
# image: "wnameless/oracle-xe-11g-r2"
377378
# ports:
378379
# - "1521:1521"
379-
#
380-
# steps:
381-
# - name: "Checkout"
382-
# uses: "actions/checkout@v2"
383-
#
380+
381+
steps:
382+
- name: "Checkout"
383+
uses: "actions/checkout@v2"
384+
384385
# - name: "Install PHP"
385386
# uses: "shivammathur/setup-php@v2"
386387
# with:
387388
# php-version: "${{ matrix.php-version }}"
388389
# extensions: "oci8"
389390
# coverage: "pcov"
390-
#
391-
# - name: "Cache dependencies installed with composer"
392-
# uses: "actions/cache@v1"
393-
# with:
394-
# path: "~/.composer/cache"
395-
# key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
396-
# restore-keys: "php-${{ matrix.php-version }}-composer-locked-"
397-
#
391+
392+
- name: "Cache dependencies installed with composer"
393+
uses: "actions/cache@v1"
394+
with:
395+
path: "~/.composer/cache"
396+
key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
397+
restore-keys: "php-${{ matrix.php-version }}-composer-locked-"
398+
398399
# - name: "Setup Oracle user"
399400
# run: |
400401
# docker exec $(docker ps -aqf "ancestor=wnameless/oracle-xe-11g-r2") bash -c "export PS1=1 && source /etc/bash.bashrc && source /root/.bashrc && sqlplus -L -S sys/oracle AS SYSDBA <<<SQL \
@@ -405,12 +406,12 @@ jobs:
405406
# grant select any dictionary to tdbm_admin; \
406407
# exit \
407408
# SQL"
408-
#
409-
# - name: "Install dependencies with composer"
410-
# run: "composer install --no-interaction --no-progress --no-suggest"
411-
#
412-
# - name: "Run PHPUnit"
413-
# run: "vendor/bin/phpunit -c phpunit.oracle.xml --coverage-clover=coverage.xml"
414-
#
415-
# - name: "Upload Code Coverage"
416-
# uses: "codecov/codecov-action@v1"
409+
410+
- name: "Install dependencies with composer"
411+
run: "composer install --no-interaction --no-progress --no-suggest"
412+
413+
- name: "Run PHPUnit"
414+
run: "vendor/bin/phpunit -c phpunit.oracle.xml --coverage-clover=coverage.xml"
415+
416+
- name: "Upload Code Coverage"
417+
uses: "codecov/codecov-action@v1"

0 commit comments

Comments
 (0)