Skip to content

Commit

Permalink
Update L11 (#5)
Browse files Browse the repository at this point in the history
* Update to Laravel 11

* use release version of orchestra/testbench

* bump actions/checkout to v4
  • Loading branch information
hulkur authored Mar 25, 2024
1 parent 38645ea commit f985013
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 21 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,15 @@ jobs:

strategy:
matrix:
php: [8.1, 8.2]
laravel: [10.*, 9.*]
php: [8.2, 8.3]
laravel: [11.*]
dependency-version: [prefer-stable]
include:
- laravel: 10.*
testbench: ^8.0
- laravel: 9.*
testbench: ^7.0

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

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -33,7 +28,7 @@ jobs:

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Execute tests
Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
"homepage": "https://github.com/hulkur/laravel-hasmany-keyby",
"license": "MIT",
"require": {
"php" : "^8.1",
"illuminate/database": "^9.0|^10.0",
"illuminate/support": "^9.0|^10.0"
"php" : "^8.2",
"illuminate/database": "^11.0",
"illuminate/support": "^11.0"
},
"require-dev": {
"brianium/paratest": "^6.4",
"brianium/paratest": "^7.0",
"doctrine/persistence": "^2.0",
"mockery/mockery": "^1.5",
"nunomaduro/collision": "^6.0",
"orchestra/testbench": "^7.0|^8.0"
"nunomaduro/collision": "^8.1",
"orchestra/testbench": "^9.0"
},
"authors": [
{
Expand Down
12 changes: 6 additions & 6 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" backupStaticAttributes="false" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" verbose="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory suffix=".php">src/</directory>
</include>
</coverage>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.0/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<testsuites>
<testsuite name="testsuite">
<directory>tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">src/</directory>
</include>
</source>
</phpunit>

0 comments on commit f985013

Please sign in to comment.