Skip to content

Commit

Permalink
chore: update phpunit, add more php-versions to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tinect committed Jan 13, 2022
1 parent 7a88485 commit a275165
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 21 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/PHPUnit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,18 @@ jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
php_version: [ 7.4, 8.0, 8.1 ]

steps:
- uses: actions/checkout@v2
- uses: php-actions/composer@v5
with:
php_version: 7.4
php_version: ${{ matrix.php_version }}
- uses: php-actions/phpunit@v3
with:
php_version: 7.4
php_version: ${{ matrix.php_version }}
env:
STORAGENAME: ${{ secrets.STORAGENAME }}
APIKEY: ${{ secrets.APIKEY }}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"async-aws/flysystem-s3": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "^7.5"
"phpunit/phpunit": "^8.0 | ^9.3"
},
"autoload": {
"psr-4": {
Expand Down
31 changes: 13 additions & 18 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,26 +1,21 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
backupGlobals="false"
backupStaticAttributes="false"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
processIsolation="false"
stopOnFailure="true"
verbose="true"
bootstrap="tests/bootstrap.php"
>
<testsuites>
<testsuite name="tests">
<directory suffix=".php">./tests/</directory>
<testsuite name="BunnyCDN Flysystem Test Suite">
<directory>tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">./src/</directory>
</whitelist>
</filter>

<logging>
<log type="coverage-html" target="./report" lowUpperBound="50" highLowerBound="80" />
<log type="coverage-clover" target="./clover.xml"/>
</logging>
</phpunit>
<coverage processUncoveredFiles="true">
<include>
<directory>src/</directory>
</include>
<exclude>
<directory suffix="Tests.php">tests/</directory>
</exclude>
</coverage>
</phpunit>

0 comments on commit a275165

Please sign in to comment.