@@ -350,6 +350,9 @@ jobs:
350350 - name : " Running PHPBench on current branch"
351351 run : " ./phpbench.dist.sh run --tag=current_pr --store"
352352
353+ - name : " Reverting any change (that could have been triggered by composer install)"
354+ run : " git checkout -- ."
355+
353356 - name : " Switching to master branch"
354357 run : " git checkout master"
355358
@@ -362,55 +365,44 @@ jobs:
362365 - name : " Generating comparison"
363366 run : " ./phpbench.dist.sh report --uuid=tag:current_pr --uuid=tag:master --report='{extends: compare, compare: tag}'"
364367
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- #
374- # services:
375- # oracle:
376- # image: "wnameless/oracle-xe-11g-r2"
377- # ports:
378- # - "1521:1521"
379- #
380- # steps:
381- # - name: "Checkout"
382- # uses: "actions/checkout@v2"
383- #
384- # - name: "Install PHP"
385- # uses: "shivammathur/setup-php@v2"
386- # with:
387- # php-version: "${{ matrix.php-version }}"
388- # extensions: "oci8"
389- # 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- #
398- # - name: "Setup Oracle user"
399- # run: |
400- # 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 \
401- # create user tdbm_admin identified by tdbm quota unlimited on USERS default tablespace USERS; \
402- # GRANT CONNECT,RESOURCE TO tdbm_admin; \
403- # GRANT dba TO tdbm_admin WITH ADMIN OPTION; \
404- # grant create session, create procedure, create type, create table, create sequence, create view to tdbm_admin; \
405- # grant select any dictionary to tdbm_admin; \
406- # exit \
407- # 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"
368+ phpunit-oci8 :
369+ name : " PHPUnit on OCI8"
370+ runs-on : " ubuntu-latest"
371+
372+ strategy :
373+ matrix :
374+ php-version :
375+ - " 7.4"
376+
377+ services :
378+ oracle :
379+ image : " wnameless/oracle-xe-11g-r2"
380+ ports :
381+ - " 1521:1521"
382+
383+ steps :
384+ - name : " Checkout"
385+ uses : " actions/checkout@v2"
386+
387+ - name : " Install PHP"
388+ uses : " shivammathur/setup-php@v2"
389+ with :
390+ php-version : " ${{ matrix.php-version }}"
391+ extensions : " oci8"
392+ coverage : " pcov"
393+
394+ - name : " Cache dependencies installed with composer"
395+ uses : " actions/cache@v1"
396+ with :
397+ path : " ~/.composer/cache"
398+ key : " php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
399+ restore-keys : " php-${{ matrix.php-version }}-composer-locked-"
400+
401+ - name : " Install dependencies with composer"
402+ run : " composer install --no-interaction --no-progress --no-suggest"
403+
404+ - name : " Run PHPUnit"
405+ run : " vendor/bin/phpunit -c phpunit.oracle.xml --coverage-clover=coverage.xml"
406+
407+ - name : " Upload Code Coverage"
408+ uses : " codecov/codecov-action@v1"
0 commit comments