mirror of
https://github.com/Universal-Omega/PortableInfobox.git
synced 2024-11-24 00:06:25 +00:00
This reverts commit f4e97e1ffc
.
This commit is contained in:
parent
f4e97e1ffc
commit
3e5b902709
26
.github/workflows/phpunit-tests.yml
vendored
26
.github/workflows/phpunit-tests.yml
vendored
|
@ -84,9 +84,7 @@ jobs:
|
||||||
|
|
||||||
- name: Download MediaWiki
|
- name: Download MediaWiki
|
||||||
working-directory: ~
|
working-directory: ~
|
||||||
run: |
|
run: bash installer/.github/workflows/download-mediawiki.sh ${{ matrix.mw }}
|
||||||
composer require "mediawiki/phpunit-patch-coverage:0.0.10"
|
|
||||||
bash installer/.github/workflows/download-mediawiki.sh ${{ matrix.mw }}
|
|
||||||
|
|
||||||
- name: Install MediaWiki
|
- name: Install MediaWiki
|
||||||
working-directory: ~
|
working-directory: ~
|
||||||
|
@ -104,22 +102,8 @@ jobs:
|
||||||
- name: Run PHPUnit
|
- name: Run PHPUnit
|
||||||
continue-on-error: ${{ matrix.continue-on-error }}
|
continue-on-error: ${{ matrix.continue-on-error }}
|
||||||
run: |
|
run: |
|
||||||
php -d extension=pcov.so -d pcov.enabled=1 -d pcov.directory=extensions/PortableInfobox -d pcov.exclude='@(tests|vendor)@' \
|
[[ '${{ matrix.mw }}' != 'master' ]] && PHPUNIT_ARGS='--use-normal-tables' || PHPUNIT_ARGS=''
|
||||||
tests/phpunit/phpunit.php \
|
php tests/phpunit/phpunit.php $PHPUNIT_ARGS extensions/PortableInfobox/tests/phpunit
|
||||||
--testsuite extensions \
|
|
||||||
"extensions/PortableInfobox/tests/phpunit"
|
|
||||||
|
|
||||||
- name: Run PHPUnit for core
|
env:
|
||||||
continue-on-error: true
|
PHPUNIT_USE_NORMAL_TABLES: 1
|
||||||
run: |
|
|
||||||
php -d extension=pcov.so -d pcov.enabled=1 -d pcov.directory=. -d pcov.exclude='@(tests|vendor)@' \
|
|
||||||
tests/phpunit/phpunit.php \
|
|
||||||
"tests/phpunit"
|
|
||||||
|
|
||||||
- name: Run PHPUnit patch coverage check
|
|
||||||
continue-on-error: true
|
|
||||||
run: |
|
|
||||||
cd extensions/PortableInfobox
|
|
||||||
../../../vendor/bin/phpunit-patch-coverage check \
|
|
||||||
--command "php vendor/bin/phpunit" \
|
|
||||||
--sha1 HEAD
|
|
||||||
|
|
Loading…
Reference in a new issue