Skip to content

Commit f18b27f

Browse files
committed
Simplify GH CI action
1 parent 97c012c commit f18b27f

3 files changed

Lines changed: 28 additions & 34 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
strategy:
1717
matrix:
1818
include:
19-
- mw: 'REL1_34'
20-
php: 7.3
2119
- mw: 'REL1_34'
2220
php: 7.4
21+
- mw: 'REL1_34'
22+
php: 7.3
2323

2424
runs-on: ubuntu-latest
2525

@@ -44,7 +44,7 @@ jobs:
4444
mediawiki
4545
!mediawiki/extensions/
4646
!mediawiki/vendor/
47-
key: mw_${{ matrix.mw }}-php${{ matrix.php }}-v20
47+
key: mw_${{ matrix.mw }}-php${{ matrix.php }}-v21
4848

4949
- name: Cache Composer cache
5050
uses: actions/cache@v2
@@ -59,9 +59,7 @@ jobs:
5959
- name: Install MediaWiki
6060
if: steps.cache-mediawiki.outputs.cache-hit != 'true'
6161
working-directory: ~
62-
run: |
63-
bash EarlyCopy/.github/workflows/installMediaWiki.sh ${{ matrix.mw }}
64-
bash EarlyCopy/.github/workflows/installExtensions.sh ${{ matrix.mw }} WikibaseLocalMedia
62+
run: bash EarlyCopy/.github/workflows/installMediaWiki.sh ${{ matrix.mw }} WikibaseLocalMedia
6563

6664
- uses: actions/checkout@v2
6765
with:

.github/workflows/installExtensions.sh

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/installMediaWiki.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#! /bin/bash
22

33
MW_BRANCH=$1
4+
EXTENSION_NAME=$2
45

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

@@ -17,3 +18,26 @@ echo 'ini_set("display_errors", 1);' >> LocalSettings.php
1718
echo '$wgShowExceptionDetails = true;' >> LocalSettings.php
1819
echo '$wgShowDBErrorBacktrace = true;' >> LocalSettings.php
1920
echo '$wgDevelopmentWarnings = true;' >> LocalSettings.php
21+
22+
echo '$wgEnableWikibaseRepo = true;' >> LocalSettings.php
23+
echo '$wgEnableWikibaseClient = false;' >> LocalSettings.php
24+
echo 'require_once __DIR__ . "/extensions/Wikibase/repo/Wikibase.php";' >> LocalSettings.php
25+
echo 'require_once __DIR__ . "/extensions/Wikibase/repo/ExampleSettings.php";' >> LocalSettings.php
26+
27+
echo 'wfLoadExtension( "'$EXTENSION_NAME'" );' >> LocalSettings.php
28+
29+
cat <<EOT >> composer.local.json
30+
{
31+
"require": {
32+
"wikibase/wikibase": "dev-$MW_BRANCH"
33+
},
34+
"extra": {
35+
"merge-plugin": {
36+
"merge-dev": true,
37+
"include": [
38+
"extensions/$EXTENSION_NAME/composer.json"
39+
]
40+
}
41+
}
42+
}
43+
EOT

0 commit comments

Comments
 (0)