Skip to content

Commit

Permalink
Add php 8 support #39 (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankurk91 authored Dec 14, 2020
1 parent 2b55a31 commit fc4ab16
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 26 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ jobs:

runs-on: ubuntu-latest
strategy:
fail-fast: true
fail-fast: false
matrix:
php: [7.2, 7.3, 7.4]
php: [7.3, 7.4, 8.0]
composer-flag: [prefer-lowest, prefer-stable]

name: php v${{ matrix.php }} - ${{ matrix.composer-flag }}
Expand All @@ -26,7 +26,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2


- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
Expand All @@ -40,4 +39,5 @@ jobs:

- name: Execute tests
run: composer test -- --coverage-clover=coverage.xml
continue-on-error: ${{ matrix.composer-flag == 'prefer-lowest' }}

6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
}
],
"require": {
"php": "^7.2",
"laravel/passport": "^8.0||^9.0||^10.0"
"php": "^7.3||^8.0",
"laravel/passport": "^9.0||^10.0"
},
"require-dev": {
"mockery/mockery": "^1.3",
"orchestra/testbench": "^5.0||^6.0",
"orchestra/testbench": "^6.0",
"laminas/laminas-diactoros": "^2.4"
},
"autoload": {
Expand Down
38 changes: 18 additions & 20 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
backupGlobals="false"
backupStaticAttributes="false"
beStrictAboutTestsThatDoNotTestAnything="false"
bootstrap="vendor/autoload.php"
colors="true"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./src/</directory>
</include>
</coverage>
<phpunit
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite name="Laravel Passport Social Grant Test Suite">
<directory suffix=".php">./tests/</directory>
<testsuite name="Test Suite">
<directory suffix=".php">./tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist>
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
</phpunit>

0 comments on commit fc4ab16

Please sign in to comment.