Skip to content

Commit

Permalink
Fix WB submodules and test with modern MW (#37)
Browse files Browse the repository at this point in the history
* Fix WB submodules and test with modern MW

* Update installMediaWiki.sh

---------

Co-authored-by: Morne Alberts <morne@malberts.net>
  • Loading branch information
JeroenDeDauw and malberts authored Nov 28, 2024
1 parent bd0f1dc commit 1c7a381
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ jobs:
php: 8.0
- mw: 'REL1_39'
php: 8.0
- mw: 'REL1_40'
php: 8.1
- mw: 'REL1_41'
php: 8.1
- mw: 'REL1_42'
php: 8.2
- mw: 'REL1_43'
php: 8.2

runs-on: ubuntu-latest

Expand All @@ -46,7 +54,7 @@ jobs:
mediawiki
!mediawiki/extensions/
!mediawiki/vendor/
key: mw_${{ matrix.mw }}-php${{ matrix.php }}-v1
key: mw_${{ matrix.mw }}-php${{ matrix.php }}-v3

- name: Cache Composer cache
uses: actions/cache@v2
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/installMediaWiki.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#! /bin/bash

set -e

MW_BRANCH=$1
EXTENSION_NAME=$2

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

tar -zxf $MW_BRANCH.tar.gz
mv mediawiki-$MW_BRANCH mediawiki
Expand Down Expand Up @@ -45,4 +47,11 @@ cat <<EOT >> composer.local.json
EOT

cd extensions
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Wikibase --branch=$MW_BRANCH --recurse-submodules -j8
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Wikibase --branch=$MW_BRANCH -j8

cd Wikibase
git submodule set-url view/lib/wikibase-serialization https://github.com/wmde/WikibaseSerializationJavaScript.git
git submodule set-url view/lib/wikibase-data-values https://github.com/wmde/DataValuesJavaScript.git
git submodule set-url view/lib/wikibase-data-model https://github.com/wmde/WikibaseDataModelJavaScript.git
git submodule sync && git submodule init && git submodule update --recursive
cd ..

0 comments on commit 1c7a381

Please sign in to comment.