Skip to content

Commit

Permalink
Add Laravel 11 support, remove Laravel 9 (end of life) (#4)
Browse files Browse the repository at this point in the history
* update composer to support laravel 11, testbench 9, phpstan 10

* bump php requirements to 8.2

* update nunomaduro/collision

* update phpunit and testbench

* dropped laravel 9 support, end of life

* update composer.json

* update composer.json

* update to pint yml file
  • Loading branch information
gtmassey authored Nov 12, 2024
1 parent 0eaf7c0 commit e50e9b5
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 48 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.2'
coverage: none

- name: Install composer dependencies
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,10 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.1, 8.2, 8.3]
laravel: [9.*, 10.*, 11.*]
php: [8.2, 8.3]
laravel: [10.*, 11.*]
stability: [prefer-stable]
include:
- laravel: 9.*
testbench: 7.*
- laravel: 10.*
testbench: 8.*
- laravel: 11.*
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.idea
.phpunit.result.cache
.phpunit.cache
build
composer.lock
coverage
Expand Down
11 changes: 5 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,20 @@
}
],
"require": {
"php": "^8.1|^8.2|^8.3",
"illuminate/contracts": "^9.0|^10.0|^11.0",
"php": "^8.2|^8.3",
"illuminate/contracts": "^10.0|^11.0",
"nesbot/carbon": "^2.64|^3.1",
"spatie/laravel-package-tools": "^1.13.0"
},
"require-dev": {
"larastan/larastan": "^2.9",
"laravel/pint": "^1.2.1",
"nunomaduro/collision": "^6.3.1",
"nunomaduro/larastan": "^2.2.9",
"orchestra/testbench": "^7.15|^8.0",
"orchestra/testbench": "^9.5",
"phpstan/extension-installer": "^1.2",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-mockery": "^1.1",
"phpstan/phpstan-phpunit": "^1.2.2",
"phpunit/phpunit": "^9.5.26",
"phpunit/phpunit": "^9.6.21|^10.5.38",
"rregeer/phpunit-coverage-check": "^0.3.1"
},
"autoload": {
Expand Down
58 changes: 21 additions & 37 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,39 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
executionOrder="random"
failOnWarning="true"
failOnRisky="true"
failOnEmptyTestSuite="true"
beStrictAboutOutputDuringTests="true"
verbose="true"
>
<testsuites>
<testsuite name="Gtmassey Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<coverage>
<include>
<directory suffix=".php">./src</directory>
</include>
<report>
<html outputDirectory="build/coverage"/>
<text outputFile="build/coverage.txt"/>
<clover outputFile="build/logs/clover.xml"/>
</report>
</coverage>
<logging>
<junit outputFile="build/report.junit.xml"/>
</logging>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" backupGlobals="false" bootstrap="vendor/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" executionOrder="random" failOnWarning="true" failOnRisky="true" failOnEmptyTestSuite="true" beStrictAboutOutputDuringTests="true" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<testsuites>
<testsuite name="Gtmassey Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<coverage>
<report>
<html outputDirectory="build/coverage"/>
<text outputFile="build/coverage.txt"/>
<clover outputFile="build/logs/clover.xml"/>
</report>
</coverage>
<logging>
<junit outputFile="build/report.junit.xml"/>
</logging>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
</source>
</phpunit>

0 comments on commit e50e9b5

Please sign in to comment.