Skip to content
Closed
Show file tree
Hide file tree
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
20 changes: 15 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
name: "PHPUnit: MW ${{ matrix.mw }}, PHP ${{ matrix.php }} (TYPE ${{ matrix.type }})"

strategy:
fail-fast: false # [TEST BRANCH] show every entry's verdict, don't matrix-mate cancel
matrix:
include:
- mw: 'REL1_39'
Expand Down Expand Up @@ -74,7 +75,7 @@ jobs:
mediawiki
!mediawiki/extensions/
!mediawiki/vendor/
key: mw_${{ matrix.mw }}-php${{ matrix.php }}
key: mw_${{ matrix.mw }}-php${{ matrix.php }}-experiment

- name: Cache Composer cache
uses: actions/cache@v4
Expand Down Expand Up @@ -103,12 +104,21 @@ jobs:
run: bash EarlyCopy/.github/workflows/uploadImages.sh

- if: env.TYPE != 'coverage'
name: Run PHPUnit w/o coverage
run: php tests/phpunit/phpunit.php -c extensions/BootstrapComponents/ --testsuite bootstrap-components-unit
name: '[TEST] Run PHPUnit (unified runner, --group mediawiki-databaseless)'
run: |
(composer phpunit:config 2>/dev/null || true)
vendor/bin/phpunit -c extensions/BootstrapComponents/phpunit.xml.dist \
--bootstrap tests/phpunit/bootstrap.php \
--group mediawiki-databaseless

- if: env.TYPE == 'coverage'
name: Run PHPUnit w/ coverage
run: php tests/phpunit/phpunit.php -c extensions/BootstrapComponents/ --testsuite bootstrap-components-unit --coverage-clover coverage.clover
name: '[TEST] Run PHPUnit (unified runner, --group mediawiki-databaseless, coverage)'
run: |
(composer phpunit:config 2>/dev/null || true)
vendor/bin/phpunit -c extensions/BootstrapComponents/phpunit.xml.dist \
--bootstrap tests/phpunit/bootstrap.php \
--group mediawiki-databaseless \
--coverage-clover coverage.clover

- if: env.TYPE == 'coverage'
name: upload coverage report
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/installWiki.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ MW_BRANCH=$1
EXTENSION_NAME=$2

## install core
wget https://github.com/wikimedia/mediawiki/archive/${MW_BRANCH}.tar.gz -nv

tar -zxf $MW_BRANCH.tar.gz
mv mediawiki-$MW_BRANCH mediawiki
# [TEST BRANCH] git clone instead of tarball — MW master needs
# phpunit.xml.template which is export-ignored from the archive.
git clone --depth 1 --branch "$MW_BRANCH" https://github.com/wikimedia/mediawiki.git mediawiki
cd $MW_ROOT

composer install
Expand Down
Loading