Skip to content

Commit

Permalink
Merge pull request #22 from ukfast/set-php-version
Browse files Browse the repository at this point in the history
Set package to use PHP 8 onwards
  • Loading branch information
Gman98ish authored Jun 29, 2022
2 parents 6f6ec90 + 02962e3 commit d6005ca
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

strategy:
matrix:
php: [8.1, 8.0, 7.4, 7.3, 7.2]
php: [8.1, 8.0]

name: PHP${{ matrix.php }} - ubuntu-latest

Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
},
"minimum-stability": "dev",
"require": {
"php": "^8.0|^8.1",
"illuminate/database": "^6.0|^7.30.4|^8.0|^9.0",
"illuminate/http": "^6.0|^7.0|^8.0|^9.0"
},
Expand Down
31 changes: 12 additions & 19 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
<phpunit
bootstrap="./vendor/autoload.php"
colors="true"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
>
<testsuites>
<testsuite name="Unit Tests">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">./src</directory>
</whitelist>
</filter>
<?xml version="1.0"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="./vendor/autoload.php" colors="true" verbose="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage processUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
<testsuites>
<testsuite name="Unit Tests">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
</phpunit>

0 comments on commit d6005ca

Please sign in to comment.