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
18 changes: 13 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
continue-on-error: ${{ matrix.experimental }}

strategy:
fail-fast: false
matrix:
include:
- mw: 'REL1_43'
Expand All @@ -24,7 +25,7 @@ jobs:
- mw: 'REL1_45'
php: 8.3
experimental: false
- mw: 'master'
- mw: 'REL1_46'
php: 8.4
experimental: true
- mw: 'master'
Expand Down Expand Up @@ -53,7 +54,7 @@ jobs:
mediawiki
!mediawiki/extensions/
!mediawiki/vendor/
key: mw_${{ matrix.mw }}-php${{ matrix.php }}
key: mw_${{ matrix.mw }}-php${{ matrix.php }}-v2

- name: Cache Composer cache
uses: actions/cache@v4
Expand All @@ -78,7 +79,14 @@ jobs:
run: composer update --no-progress --no-interaction --prefer-dist --optimize-autoloader

- name: Run PHPUnit
run: php tests/phpunit/phpunit.php -c vendor/mediawiki/scss
run: |
if [ -f tests/phpunit/phpunit.php ]; then
php tests/phpunit/phpunit.php -c vendor/mediawiki/scss
else
# MW 1.46 and later
composer phpunit:config
vendor/bin/phpunit vendor/mediawiki/scss/tests/phpunit
fi

code-style:
name: "Code style: MW ${{ matrix.mw }}, PHP ${{ matrix.php }}"
Expand Down Expand Up @@ -137,7 +145,7 @@ jobs:
mediawiki
!mediawiki/extensions/
!mediawiki/vendor/
key: mw_${{ matrix.mw }}-php${{ matrix.php }}
key: mw_${{ matrix.mw }}-php${{ matrix.php }}-v2

- name: Cache Composer cache
uses: actions/cache@v4
Expand Down Expand Up @@ -198,7 +206,7 @@ jobs:
mediawiki
!mediawiki/extensions/
!mediawiki/vendor/
key: mw_${{ matrix.mw }}-php${{ matrix.php }}
key: mw_${{ matrix.mw }}-php${{ matrix.php }}-v2

- name: Cache Composer cache
uses: actions/cache@v4
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/installWiki.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
MW_BRANCH=$1
EXTENSION_NAME=$2

wget https://github.com/wikimedia/mediawiki/archive/$MW_BRANCH.tar.gz -nv

tar -zxf $MW_BRANCH.tar.gz
mv mediawiki-$MW_BRANCH mediawiki
git clone --depth 1 --branch ${MW_BRANCH} https://github.com/wikimedia/mediawiki.git mediawiki

cd mediawiki

Expand Down
Loading