Skip to content

Commit

Permalink
Update laravel-akamai for Laravel 10 (#5)
Browse files Browse the repository at this point in the history
* update dependencies, update phpunit.xml, update git test yml

* update git test yml

* adjust composer php dependency to match the test yml
  • Loading branch information
isoquante authored Feb 16, 2024
1 parent 010e5b2 commit 85d7c26
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 31 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,11 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [7.3, 7.4]
laravel: [7.*, 8.*]
php: [8.2]
laravel: [10.*]
include:
- laravel: 7.*
testbench: 5.*
- laravel: 8.*
testbench: 6.*
- laravel: 10.*
testbench: 8.*

name: P${{ matrix.php }} - L${{ matrix.laravel }}

Expand Down
21 changes: 7 additions & 14 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,16 @@
"license": "MIT",
"type": "project",
"require": {
"php": ">=7.3",
"php": ">=8.2",
"ext-json": "*",
"laravel/framework": "^7.0|^8.0",
"patriziotomato/edgegrid-client": "^1.2"
"laravel/framework": "^10.0",
"akamai-open/edgegrid-client": "^2.1"
},
"require-dev": {
"fzaninotto/faker": "^1.9.1",
"nunomaduro/collision": "^4.2",
"phpunit/phpunit": "^8.0",
"orchestra/testbench": "^6.0"
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.0",
"orchestra/testbench": "^8.21"
},
"repositories": [
{
"type": "git",
"url": "[email protected]:patriziotomato/AkamaiOPEN-edgegrid-php-client.git"
}
],
"autoload": {
"psr-4": {
"LaravelAkamai\\": "src"
Expand Down Expand Up @@ -56,4 +49,4 @@
}
}
}
}
}
22 changes: 11 additions & 11 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
backupGlobals="false"
bootstrap="./vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
executionOrder="depends,random">
executionOrder="depends,random"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
cacheDirectory=".phpunit.cache"
backupStaticProperties="false">
<testsuites>
<testsuite name="Tests">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">../app</directory>
</whitelist>
</filter>
<php>
<env name="APP_ENV" value="testing"/>
<env name="CACHE_DRIVER" value="array"/>
Expand All @@ -29,4 +24,9 @@
<env name="DB_USERNAME" value="testing"/>
<env name="DB_PASSWORD" value="testing"/>
</php>
<source>
<include>
<directory suffix=".php">../app</directory>
</include>
</source>
</phpunit>

0 comments on commit 85d7c26

Please sign in to comment.