diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 877f4b2..716dc4e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,6 +24,13 @@ jobs: database_image: "mariadb:10" coverage: false experimental: false + - mediawiki_version: '1.40' + smw_version: dev-master + php_version: 8.1 + database_type: mysql + database_image: "mariadb:10" + coverage: true + experimental: false env: MW_VERSION: ${{ matrix.mediawiki_version }} diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..4237a68 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,2 @@ +fixes: + - "/var/www/html/extensions/SemanticWatchlist/::" diff --git a/composer.json b/composer.json index ba07545..f3c3a28 100644 --- a/composer.json +++ b/composer.json @@ -43,6 +43,10 @@ "test": [ "@phpunit" ], - "phpunit": "php ../../tests/phpunit/phpunit.php -c phpunit.xml.dist" + "test-coverage": [ + "@phpunit-coverage" + ], + "phpunit": "php ../../tests/phpunit/phpunit.php -c phpunit.xml.dist", + "phpunit-coverage": "php ${MW_INSTALL_PATH:-../..}/tests/phpunit/phpunit.php -c phpunit.xml.dist --testdox --coverage-text --coverage-html coverage/php --coverage-clover coverage/php/coverage.xml" } }