Skip to content
Open
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
11 changes: 3 additions & 8 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ jobs:
strategy:
fail-fast: false
matrix:
php:
- '7.4'
- '8.0'
- '8.1'
- '8.2'
- '8.3'
- '8.4'
- '8.5'
Expand Down Expand Up @@ -47,18 +42,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"
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@
"irc": "irc://irc.freenode.net/wikidata"
},
"require": {
"php": ">=7.4",
"php": ">=8.3",
"data-values/data-values": "~3.0|~2.0|~1.0|~0.1",
"serialization/serialization": "~4.0|~3.0"
},
"require-dev": {
"mediawiki/mediawiki-codesniffer": "45.0.0",
"phpunit/phpunit": "~8.5"
"mediawiki/mediawiki-codesniffer": "^52",
"phpunit/phpunit": "~9.6"
},
"autoload": {
"psr-4": {
Expand Down
35 changes: 12 additions & 23 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="tests/bootstrap.php"
cacheTokens="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false"
verbose="true">
<testsuites>
<testsuite name="DataValuesSerialization">
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist addUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
</whitelist>
</filter>
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="tests/bootstrap.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" stopOnError="false" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false" verbose="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage includeUncoveredFiles="true">
<include>
<directory suffix=".php">src</directory>
</include>
</coverage>
<testsuites>
<testsuite name="DataValuesSerialization">
<directory>tests</directory>
</testsuite>
</testsuites>
</phpunit>