Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ jobs:
fail-fast: false
matrix:
php:
- '7.2'
- '7.3'
- '7.4'
- '8.0'
- '8.1'
- '8.2'
- '8.3'
- '8.4'
- '8.5'
Expand Down Expand Up @@ -49,18 +43,18 @@ jobs:
run: composer test

- name: Setup PHP for coverage
if: matrix.php == '7.4'
if: matrix.php == '8.3'
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug

- name: Generate coverage
if: matrix.php == '7.4'
if: matrix.php == '8.3'
run: vendor/bin/phpunit --coverage-clover coverage.clover

- name: Upload Scrutinizer coverage
if: matrix.php == '7.4'
if: matrix.php == '8.3'
uses: sudo-bot/action-scrutinizer@latest
with:
cli-args: "--format=php-clover coverage.clover"
11 changes: 8 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
"irc": "irc://irc.libera.chat/wikidata"
},
"require": {
"php": ">=7.2",
"php": ">=8.3",
"data-values/data-values": "^3.0.0|^2.1.1|~1.0|~0.1",
"data-values/interfaces": "^1.0.0|~0.2.0|~0.1.0"
},
"require-dev": {
"phpunit/phpunit": "^8.5",
"mediawiki/mediawiki-codesniffer": "^34"
"phpunit/phpunit": "^9.6",
"mediawiki/mediawiki-codesniffer": "^52"
},
"autoload": {
"psr-4": {
Expand All @@ -50,5 +50,10 @@
"phpcs -p -s",
"phpunit"
]
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
Loading