Skip to content

Commit 6432740

Browse files
committed
Fetch phpunit.xml.template before running composer phpunit on master
1 parent e13445f commit 6432740

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,12 @@ jobs:
7777

7878
- name: Run PHPUnit (MW master)
7979
if: matrix.mw == 'master'
80-
run: composer phpunit -- -c extensions/ExternalContent/
80+
run: |
81+
# phpunit.xml.template is export-ignored from the GitHub tarball, fetch it separately
82+
if [ ! -f phpunit.xml.template ]; then
83+
wget -q -O phpunit.xml.template "https://raw.githubusercontent.com/wikimedia/mediawiki/${{ matrix.mw }}/phpunit.xml.template"
84+
fi
85+
composer phpunit -- extensions/ExternalContent/tests/
8186
8287
- name: Run parser tests
8388
run: php tests/parser/parserTests.php --file=extensions/ExternalContent/tests/parser/parserTests.txt

0 commit comments

Comments
 (0)