Skip to content

Commit

Permalink
Merge branch 'master' into paladox-patch-4
Browse files Browse the repository at this point in the history
  • Loading branch information
paladox authored Dec 18, 2024
2 parents 8a7aed3 + d2cc5e2 commit 2080608
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 8 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,57 @@ jobs:
include:
- mediawiki_version: '1.39'
smw_version: '4.2.0'
pf_version: '5.9'
php_version: 8.1
database_type: mysql
database_image: "mariadb:11.2"
coverage: false
experimental: false
- mediawiki_version: '1.39'
smw_version: dev-master
pf_version: '5.9'
php_version: 8.1
database_type: mysql
database_image: "mysql:8"
coverage: false
experimental: false
- mediawiki_version: '1.40'
smw_version: '4.2.0'
pf_version: '5.9'
php_version: 8.1
database_type: mysql
database_image: "mariadb:11.2"
coverage: true
experimental: false
- mediawiki_version: '1.41'
smw_version: dev-master
pf_version: '5.9'
php_version: 8.1
database_type: mysql
database_image: "mariadb:11.2"
coverage: false
experimental: false
- mediawiki_version: '1.42'
smw_version: dev-master
pf_version: '5.9'
php_version: 8.1
database_type: mysql
database_image: "mariadb:11.2"
coverage: false
experimental: false
- mediawiki_version: '1.43'
smw_version: dev-master
pf_version: '5.9'
php_version: 8.1
database_type: mysql
database_image: "mariadb:11.2"
coverage: false
experimental: false

env:
MW_VERSION: ${{ matrix.mediawiki_version }}
SMW_VERSION: ${{ matrix.smw_version }}
PF_VERSION: ${{ matrix.pf_version }}
PHP_VERSION: ${{ matrix.php_version }}
DB_TYPE: ${{ matrix.database_type }}
DB_IMAGE: ${{ matrix.database_image }}
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ DB_IMAGE?=""

# extensions
SMW_VERSION?=4.2.0
PF_VERSION?=5.5.1
PF_VERSION?=5.9

# composer
# Enables "composer update" inside of extension
Expand Down
10 changes: 8 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@
"php": ">=7.4",
"composer/installers": "1.*,>=1.0.1",
"mediawiki/semantic-media-wiki": "~4.0|~5.0",
"mediawiki/page-forms": ">=5.3.0"
"mediawiki/page-forms": ">=5.9.0"
},
"require-dev": {
"mediawiki/semantic-media-wiki": "@dev"
"mediawiki/semantic-media-wiki": "@dev",
"mediawiki/minus-x": "1.1.3",
"php-parallel-lint/php-console-highlighter": "1.0.0",
"php-parallel-lint/php-parallel-lint": "1.4.0"
},
"extra": {
"branch-alias": {
Expand All @@ -60,11 +63,14 @@
},
"scripts":{
"test": [
"@lint",
"minus-x check .",
"@phpunit"
],
"test-coverage": [
"@phpunit-coverage"
],
"lint": "parallel-lint . --exclude vendor --exclude node_modules",
"phpunit": "php ../../tests/phpunit/phpunit.php -c phpunit.xml.dist",
"phpunit-coverage": "php ../../tests/phpunit/phpunit.php -c phpunit.xml.dist --testdox --coverage-text --coverage-html coverage/php --coverage-clover coverage/php/coverage.xml"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @author FelixAba
*/
class ApiSemanticFormsSelectRequestProcessorTest
extends \PHPUnit_Framework_TestCase {
extends \PHPUnit\Framework\TestCase {

private $ApiSFSRP;

Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/Unit/ApiSemanticFormsSelectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* @author mwjames
*/
class ApiSemanticFormsSelectTest extends \PHPUnit_Framework_TestCase {
class ApiSemanticFormsSelectTest extends \PHPUnit\Framework\TestCase {

private $ApiSFS;
private $ApiMain;
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/Unit/OutputTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* @author mwjames
*/
class OutputTest extends \PHPUnit_Framework_TestCase {
class OutputTest extends \PHPUnit\Framework\TestCase {
private $data;

protected function setUp(): void {
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/Unit/SelectFieldTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* @group semantic-forms-select
* @author FelixAba
*/
class SelectFieldTest extends \PHPUnit_Framework_TestCase {
class SelectFieldTest extends \PHPUnit\Framework\TestCase {
private $selectField;

private $other_args_query_parametrized = [ 'query' => '((Category:Building Complex))((Part Of Site::@@@@));?Display Title;format~list;sort~Display Title;sep~,;link~none;headers~hide;limit~500' ];
Expand Down
2 changes: 1 addition & 1 deletion tests/phpunit/Unit/SemanticFormsSelectInputTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* @author FelixAba
*/
class SemanticFormsSelectInputTest extends \PHPUnit_Framework_TestCase {
class SemanticFormsSelectInputTest extends \PHPUnit\Framework\TestCase {

private $SFSInput;

Expand Down

0 comments on commit 2080608

Please sign in to comment.