Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,21 @@ jobs:
- name: Composer update
run: composer update

- name: Run PHPUnit
# "master" currently tracks MW >= 1.46, where tests/phpunit/phpunit.php
# was removed. Once REL1_46 lands in the matrix, it needs the master
# invocation below as well.
- name: Run PHPUnit (MW < master)
if: matrix.mw != 'master'
run: php tests/phpunit/phpunit.php -c extensions/Bootstrap/

- name: Run PHPUnit (MW master)
if: matrix.mw == 'master'
run: |
# TODO: phpunit.xml.template is export-ignored from GitHub's tarball
# archive, so we fetch it separately. Remove this once installWiki.sh
# switches to `git clone`, or MW drops the export-ignore.
if [ ! -f phpunit.xml.template ]; then
wget -q -O phpunit.xml.template "https://raw.githubusercontent.com/wikimedia/mediawiki/${{ matrix.mw }}/phpunit.xml.template"
fi
composer phpunit:config
vendor/bin/phpunit --group extension-bootstrap
Loading