Skip to content
6 changes: 5 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: [8.0, 8.1, 8.2, 8.3, 8.4]
php: [8.0, 8.1, 8.2, 8.3, 8.4, 8.5]
laravel: ['8.*', '9.*', '10.*', '11.*', '12.*']
coverage: [none]
dependency-version: [prefer-stable]
Expand Down Expand Up @@ -65,7 +65,11 @@ jobs:

- name: Install dependencies
run: |
if [ "${{ matrix.laravel }}" = "11.*" ] && [ "${{ matrix.php }}" = "8.5" ]; then
composer require "phpunit/phpunit:^12" "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
fi
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update

composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest

- name: Execute tests
Expand Down
10 changes: 4 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,8 @@
"cache",
"redis",
"memcache",
"laravel 8",
"laravel 9",
"nova 4",
"mostafaznv"
"nova",
"laravel nova"
],
"license": "MIT",
"support": {
Expand All @@ -32,9 +30,9 @@
"laravel/framework": "^8.40.0|^9.0|^10.0|^11.0|^12.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5.10|^10.0|^11.5.3",
"phpunit/phpunit": "^9.5.10|^10.0|^11.5.3|^12.4.4",
"orchestra/testbench": "^6.0|^7.0|^8.0|^9.0|^10.0",
"pestphp/pest": "^1.20|^2.34|^3.7",
"pestphp/pest": "^1.20|^2.34|^3.7|^4.1",
"spatie/pest-plugin-test-time": "^1.0|^2.1"
},
"autoload": {
Expand Down
14 changes: 5 additions & 9 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,22 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false" backupStaticAttributes="false" bootstrap="vendor/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnError="false" stopOnFailure="false" verbose="true">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnError="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.4/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<testsuites>
<coverage>
<include>
<directory suffix=".php">src/</directory>
</include>
</coverage>

<testsuite name="LaraCache Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>

<coverage processUncoveredFiles="true">
<coverage/>

<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</coverage>
</source>

<php>
<env name="APP_NAME" value="laracache-app"/>
Expand Down