Add PHP 8.0 tests for Phan (#8)

This commit is contained in:
Universal Omega 2021-09-11 17:46:15 -06:00 committed by GitHub
parent 42778958ab
commit 68cc50ef23
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 30 additions and 10 deletions

View file

@ -22,12 +22,24 @@ jobs:
- mw: 'REL1_36' - mw: 'REL1_36'
php: 7.4 php: 7.4
composer: v2 composer: v2
continue-on-error: true continue-on-error: false
# Latest MediaWiki master # Latest MediaWiki master - PHP 7.3
- mw: 'master' - mw: 'master'
php: 7.3 php: 7.3
composer: v2 composer: v2
continue-on-error: false
# Latest MediaWiki master - PHP 7.4
- mw: 'master'
php: 7.4
composer: v2
continue-on-error: false
# Latest MediaWiki master - PHP 8.0
- mw: 'master'
php: 8.0
composer: v2
continue-on-error: true continue-on-error: true
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -47,7 +59,7 @@ jobs:
composer update composer update
- name: Check PHP - name: Check PHP
if: ${{ matrix.mw == 'master' }} if: ${{ matrix.mw == 'master' && matrix.php == 8.0 }}
run: | run: |
sh phpcbf.sh sh phpcbf.sh
composer fix composer fix
@ -61,7 +73,7 @@ jobs:
mediawiki mediawiki
!mediawiki/extensions/ !mediawiki/extensions/
!mediawiki/vendor/ !mediawiki/vendor/
key: mw-${{ matrix.mw }}-php${{ matrix.php }}-v2 key: mw-${{ matrix.mw }}-php${{ matrix.php }}-v3
- name: Cache Composer cache - name: Cache Composer cache
uses: actions/cache@v2 uses: actions/cache@v2
@ -82,7 +94,7 @@ jobs:
# Only patch code when it is a push event # Only patch code when it is a push event
- name: Push the changes - name: Push the changes
if: github.event_name == 'push' && matrix.mw == 'master' if: ${{ github.event_name == 'push' && matrix.mw == 'master' && matrix.php == 8.0 }}
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | run: |

5
AUTHORS.txt Normal file
View file

@ -0,0 +1,5 @@
The PortableInfobox extension was original created by Fandom (Adam Robak, Diana Falkowska, Jacek Jursza, Mateusz Rybarski, Rafał Leszczyński, Sebastian Marzjan).
The original port of the extension was by Luqgreg (Łukasz K.).
This version of PortableInfobox is a fork created by Universal Omega in order to provide better MediaWiki forward compatibility and support

View file

@ -1,17 +1,20 @@
{ {
"name": "Portable Infobox", "name": "Portable Infobox",
"author": [ "author": [
"Fandom (Adam Robak, Diana Falkowska, Jacek Jursza, Mateusz Rybarski, Rafał Leszczyński, Sebastian Marzjan)",
"Universal Omega", "Universal Omega",
"Luqgreg (Łukasz K.)" "Luqgreg (Łukasz K.)",
"..."
], ],
"url": "https://github.com/Luqgreg/mediawiki-PortableInfobox", "url": "https://github.com/Universal-Omega/PortableInfobox",
"descriptionmsg": "portable-infobox-desc", "descriptionmsg": "portable-infobox-desc",
"version": "0.3", "version": "0.5",
"type": "parserhook", "type": "parserhook",
"license-name": "GPL-3.0-or-later", "license-name": "GPL-3.0-or-later",
"requires": { "requires": {
"MediaWiki": ">= 1.36.0" "MediaWiki": ">= 1.36.0",
"platform": {
"php": ">= 7.3"
}
}, },
"config": { "config": {
"AllInfoboxesSubpagesBlacklist": [ "doc", "draft", "test" ], "AllInfoboxesSubpagesBlacklist": [ "doc", "draft", "test" ],