CI: Add REL1_37 tests (#28)

This commit is contained in:
Universal Omega 2021-09-14 16:33:41 -06:00 committed by GitHub
parent 16d1f4744c
commit 0fe6aa6855
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 1 deletions

View file

@ -22,6 +22,16 @@ jobs:
php: 7.4
continue-on-error: false
# Latest MediaWiki release branch - PHP 7.3
- mw: 'REL1_37'
php: 7.3
continue-on-error: true
# Latest MediaWiki release branch - PHP 7.4
- mw: 'REL1_37'
php: 7.4
continue-on-error: true
# Latest MediaWiki master - PHP 7.3
- mw: 'master'
php: 7.3

View file

@ -24,6 +24,18 @@ jobs:
mysql: '5.7'
continue-on-error: false
# Latest MediaWiki release branch - PHP 7.3
- mw: 'REL1_37'
php: 7.3
mysql: '5.7'
continue-on-error: false
# Latest MediaWiki release branch - PHP 7.4
- mw: 'REL1_37'
php: 7.4
mysql: '5.7'
continue-on-error: false
# Latest MW master - PHP 7.3
- mw: 'master'
php: 7.3
@ -102,9 +114,10 @@ jobs:
- name: Run PHPUnit
continue-on-error: ${{ matrix.continue-on-error }}
run: |
[[ '${{ matrix.mw }}' != 'master' ]] && PHPUNIT_ARGS='--use-normal-tables' || PHPUNIT_ARGS=''
[[ '${{ matrix.mw }}' != 'master' && '${{ matrix.mw }}' != 'REL1_37' ]] && PHPUNIT_ARGS='--use-normal-tables' || PHPUNIT_ARGS=''
php tests/phpunit/phpunit.php $PHPUNIT_ARGS extensions/PortableInfobox/tests/phpunit
# php tests/phpunit/phpunit.php tests/phpunit/includes/Storage/PageUpdaterTest.php
# In MediaWiki 1.37.0+ this is now an environmental variable
env:
PHPUNIT_USE_NORMAL_TABLES: 1