|
|
@ -68,24 +68,14 @@ jobs: |
|
|
|
restore-keys: | |
|
|
|
restore-keys: | |
|
|
|
php${{ matrix.php }}-composer- |
|
|
|
php${{ matrix.php }}-composer- |
|
|
|
|
|
|
|
|
|
|
|
- name: Install dependencies with composer php 7.4 |
|
|
|
- name: Install dependencies with composer |
|
|
|
if: matrix.php == '7.4' |
|
|
|
|
|
|
|
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi |
|
|
|
run: composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi |
|
|
|
|
|
|
|
|
|
|
|
- name: Install dependencies with composer php 8.0 |
|
|
|
- name: PHP Unit tests |
|
|
|
if: matrix.php == '8.0' |
|
|
|
|
|
|
|
run: composer update --ignore-platform-reqs --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: PHP Unit tests for PHP 7.4 |
|
|
|
|
|
|
|
run: vendor/bin/phpunit --coverage-clover=coverage.clover --group oci --colors=always |
|
|
|
run: vendor/bin/phpunit --coverage-clover=coverage.clover --group oci --colors=always |
|
|
|
if: matrix.php == '7.4' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Run tests with phpunit without coverage |
|
|
|
|
|
|
|
run: vendor/bin/phpunit --group oci --colors=always |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Code coverage |
|
|
|
- name: Code coverage |
|
|
|
run: | |
|
|
|
run: | |
|
|
|
wget https://scrutinizer-ci.com/ocular.phar |
|
|
|
wget https://scrutinizer-ci.com/ocular.phar |
|
|
|
php ocular.phar code-coverage:upload --format=php-clover coverage.clover |
|
|
|
php ocular.phar code-coverage:upload --format=php-clover coverage.clover |
|
|
|
if: matrix.php == '7.4' |
|
|
|
|
|
|
|
continue-on-error: true # if is fork |
|
|
|
continue-on-error: true # if is fork |
|
|
|