Revert "Add MediaWiki core PHPUnit tests (#24)" (#26)

This reverts commit f4e97e1ffc.
This commit is contained in:
Universal Omega 2021-09-13 18:28:32 -06:00 committed by GitHub
parent f4e97e1ffc
commit 3e5b902709
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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