Skip to content

Commit

Permalink
Laravel 11 (#95)
Browse files Browse the repository at this point in the history
* Bump dependencies for Laravel 11

* Update GitHub Actions for Laravel 11

* ci: update version

---------

Co-authored-by: Shift <[email protected]>
Co-authored-by: Dieter Stinglhamber <[email protected]>
  • Loading branch information
3 people authored Mar 17, 2024
1 parent 2994368 commit 30e6027
Show file tree
Hide file tree
Showing 6 changed files with 2,455 additions and 1,498 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/phpunit-l10.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run PHPUnit tests
name: Run PHPUnit tests L10.*

on:
push:
Expand All @@ -15,12 +15,12 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.1]
php: [8.1, 8.2, 8.3]
laravel: [10.*]
dependency: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
testbench: ^8.20

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

Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/phpunit-l11.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Run PHPUnit tests L11.*

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
tests:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
php: [8.2, 8.3]
laravel: [11.*]
dependency: [prefer-lowest, prefer-stable]
include:
- laravel: 11.*
testbench: 9.*

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

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, pcntl, intl, exif, iconv
coverage: none

- name: Install dependencies
run: |
composer require "illuminate/support:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency }} --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit
4 changes: 2 additions & 2 deletions .github/workflows/phpunit-l8.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run PHPUnit tests
name: Run PHPUnit tests L8.*

on:
push:
Expand All @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.0, 7.4, 7.3, 8.1]
php: [7.3, 7.4, 8.0, 8.1]
laravel: [8.*]
dependency: [prefer-lowest, prefer-stable]
include:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/phpunit-l9.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Run PHPUnit tests
name: Run PHPUnit tests L9.*

on:
push:
Expand All @@ -15,7 +15,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.0, 8.1]
php: [8.0, 8.1, 8.2]
laravel: [9.*]
dependency: [prefer-lowest, prefer-stable]
include:
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
],
"require": {
"php": "^7.3 | ^7.4 | ^8.0",
"illuminate/support": "^8.71 | ^9.0 | ^10.0"
"illuminate/support": "^8.71 | ^9.0 | ^10.0 | ^11.0"
},
"require-dev": {
"orchestra/testbench": "^6.23 | ^7.0 | ^8.0",
"phpunit/phpunit": "^9.5.10",
"orchestra/testbench": "^6.23 | ^7.0 | ^8.0 | ^9.0",
"phpunit/phpunit": "^9.5.10 | ^10.5",
"mockery/mockery": "^1.4.4"
},
"autoload": {
Expand Down
Loading

0 comments on commit 30e6027

Please sign in to comment.