Skip to content

Commit

Permalink
Update coverage driver to xdebug
Browse files Browse the repository at this point in the history
  • Loading branch information
thelovekesh committed Jan 18, 2024
1 parent 100e281 commit e513906
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/build-test-measure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ jobs:
- php: '7.0'
wp: '6.3'
coverage: false
phpunit: '7'
phpunit: '6'

steps:
- name: Checkout
Expand All @@ -274,8 +274,7 @@ jobs:
with:
php-version: ${{ matrix.php }}
extensions: curl, date, dom, gd, iconv, json, libxml, mysql, spl
coverage: ${{ matrix.coverage && 'pcov' || 'none' }}
ini-values: pcov.directory=.
coverage: ${{ matrix.coverage && 'xdebug' || 'none' }}
tools: phpunit:${{ matrix.phpunit }}

- name: Shutdown default MySQL service
Expand Down Expand Up @@ -331,15 +330,6 @@ jobs:
- name: Install WP tests
run: bash bin/ci/install-wp-tests.sh wordpress_test root '' 127.0.0.1:${{ job.services.mysql.ports['3306'] }} ${{ matrix.wp }} true

- name: Setup PCOV
if: ${{ matrix.coverage == true }}
# phpdocumentor/reflection has to be removed as it makes use of an outdated dependency, making pcov/clobber
# unable to be installed.
run: |
composer remove --dev phpdocumentor/reflection
composer require --dev --ignore-platform-reqs pcov/clobber
vendor/bin/pcov clobber
- name: Copy plugin to WP plugins directory
run: cp -r "$PWD" "$WP_CORE_DIR/src/wp-content/plugins/pwa"

Expand Down

0 comments on commit e513906

Please sign in to comment.