Skip to content

Commit

Permalink
Add PHP8 build
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianfeldmann committed Dec 8, 2020
1 parent b6ca185 commit a185589
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
max-parallel: 3
matrix:
operating-system: [ubuntu-latest]
php-versions: ['7.2', '7.3', '7.4']
php-versions: ['7.3', '7.4', '8.0']
steps:
- uses: actions/checkout@master

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
}
},
"require": {
"php": "^7.2",
"php": ">=7.2",
"ext-json": "*",
"ext-xml": "*",
"sebastianfeldmann/cli": "^3.0"
Expand Down
6 changes: 3 additions & 3 deletions phive.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
<phar name="phpunit" version="^8.0.0" location="./tools/phpunit" copy="true" installed="8.5.8"/>
<phar name="phpcs" version="^3.5.2" location="./tools/phpcs" copy="true" installed="3.5.6"/>
<phar name="phpstan" version="^0.12.0" location="./tools/phpstan" copy="true" installed="0.12.50"/>
<phar name="phpunit" version="^9.0.0" location="./tools/phpunit" copy="true" installed="9.5.0"/>
<phar name="phpcs" version="^3.5.2" location="./tools/phpcs" copy="true" installed="3.5.8"/>
<phar name="phpstan" version="^0.12.0" location="./tools/phpstan" copy="true" installed="0.12.59"/>
</phive>
20 changes: 11 additions & 9 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="tests/bootstrap.php">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="tests/bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory>src</directory>
</include>
<report>
<clover outputFile="build/logs/clover.xml"/>
<html outputDirectory="build/coverage" lowUpperBound="35" highLowerBound="70"/>
</report>
</coverage>
<testsuites>
<testsuite name="git">
<directory>tests/git</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory>src</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-html" target="build/coverage" lowUpperBound="35" highLowerBound="70" />
<log type="coverage-clover" target="build/logs/clover.xml" />
<log type="junit" target="build/logs/junit.xml" />
<junit outputFile="build/logs/junit.xml"/>
</logging>
</phpunit>

0 comments on commit a185589

Please sign in to comment.