Skip to content

Commit ee5fdb8

Browse files
JeroenDeDauwclaude
andcommitted
Handle removal of tests/phpunit/phpunit.php in MW master
MW master removed the deprecated tests/phpunit/phpunit.php entry point. Fall back to composer phpunit when the file does not exist. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 72578c6 commit ee5fdb8

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,21 @@ jobs:
107107
php maintenance/runJobs.php
108108
109109
- name: Run PHPUnit
110-
run: php tests/phpunit/phpunit.php -c extensions/WikibaseFacetedSearch/
110+
run: |
111+
if [ -f tests/phpunit/phpunit.php ]; then
112+
php tests/phpunit/phpunit.php -c extensions/WikibaseFacetedSearch/
113+
else
114+
composer phpunit -- -c extensions/WikibaseFacetedSearch/
115+
fi
111116
if: ${{ ! matrix.coverage }}
112117

113118
- name: Run PHPUnit with code coverage
114-
run: php tests/phpunit/phpunit.php -c extensions/WikibaseFacetedSearch/ --coverage-clover coverage.xml
119+
run: |
120+
if [ -f tests/phpunit/phpunit.php ]; then
121+
php tests/phpunit/phpunit.php -c extensions/WikibaseFacetedSearch/ --coverage-clover coverage.xml
122+
else
123+
composer phpunit -- -c extensions/WikibaseFacetedSearch/ --coverage-clover coverage.xml
124+
fi
115125
if: ${{ matrix.coverage }}
116126

117127
- name: Upload code coverage

0 commit comments

Comments
 (0)