Skip to content

Commit

Permalink
Fix WB submodules and test with modern MW
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenDeDauw committed Nov 28, 2024
1 parent db147e9 commit 434c2b5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
30 changes: 14 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ jobs:
php: '8.2'
- mw: 'REL1_40'
php: '8.2'
- mw: 'REL1_41'
php: '8.2'
- mw: 'REL1_42'
php: '8.2'
- mw: 'REL1_43'
php: '8.2'

runs-on: ubuntu-latest

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

- name: Cache Composer cache
uses: actions/cache@v4
Expand Down Expand Up @@ -96,10 +102,8 @@ jobs:
strategy:
matrix:
include:
- mw: 'REL1_37'
php: '8.0'
- mw: 'REL1_38'
php: '8.1'
- mw: 'REL1_39'
php: '8.2'

runs-on: ubuntu-latest

Expand All @@ -123,7 +127,7 @@ jobs:
mediawiki
mediawiki/extensions/
mediawiki/vendor/
key: mw_${{ matrix.mw }}-php${{ matrix.php }}_v3
key: mw_${{ matrix.mw }}-php${{ matrix.php }}_v4

- name: Cache Composer cache
uses: actions/cache@v4
Expand Down Expand Up @@ -164,10 +168,8 @@ jobs:
strategy:
matrix:
include:
- mw: 'REL1_37'
php: '8.0'
- mw: 'REL1_38'
php: '8.1'
- mw: 'REL1_39'
php: '8.2'

runs-on: ubuntu-latest

Expand All @@ -191,7 +193,7 @@ jobs:
mediawiki
mediawiki/extensions/
mediawiki/vendor/
key: mw_${{ matrix.mw }}-php${{ matrix.php }}_v3
key: mw_${{ matrix.mw }}-php${{ matrix.php }}_v4

- name: Cache Composer cache
uses: actions/cache@v4
Expand Down Expand Up @@ -232,10 +234,6 @@ jobs:
strategy:
matrix:
include:
- mw: 'REL1_37'
php: '8.0'
- mw: 'REL1_38'
php: '8.1'
- mw: 'REL1_39'
php: '8.2'

Expand Down Expand Up @@ -267,7 +265,7 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.composer/cache
key: mw_${{ matrix.mw }}-php${{ matrix.php }}_v3
key: mw_${{ matrix.mw }}-php${{ matrix.php }}_v4

- name: Install MediaWiki
if: steps.cache-mediawiki.outputs.cache-hit != 'true'
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/installMediaWiki.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,9 @@ EOT
cd extensions
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Wikibase --branch=$MW_BRANCH --recurse-submodules -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 434c2b5

Please sign in to comment.