Skip to content

Commit 837cbf5

Browse files
authored
Add CI for MW 1.40 and make it do coverage (#114)
* Add CI for MW 1.40 and make it do coverage * Update composer.json * Create codecov.yml
1 parent f18823a commit 837cbf5

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

Diff for: .github/workflows/ci.yml

+7
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ jobs:
2424
database_image: "mariadb:10"
2525
coverage: false
2626
experimental: false
27+
- mediawiki_version: '1.40'
28+
smw_version: dev-master
29+
php_version: 8.1
30+
database_type: mysql
31+
database_image: "mariadb:10"
32+
coverage: true
33+
experimental: false
2734

2835
env:
2936
MW_VERSION: ${{ matrix.mediawiki_version }}

Diff for: codecov.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
fixes:
2+
- "/var/www/html/extensions/SemanticWatchlist/::"

Diff for: composer.json

+5-1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@
4343
"test": [
4444
"@phpunit"
4545
],
46-
"phpunit": "php ../../tests/phpunit/phpunit.php -c phpunit.xml.dist"
46+
"test-coverage": [
47+
"@phpunit-coverage"
48+
],
49+
"phpunit": "php ../../tests/phpunit/phpunit.php -c phpunit.xml.dist",
50+
"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"
4751
}
4852
}

0 commit comments

Comments
 (0)