Skip to content

Commit

Permalink
Support Laravel 11 (#35)
Browse files Browse the repository at this point in the history
* Support Laravel 11

* Update PHP and Laravel versions in README

* Remove unsupported Illuminate packages

* exclude unsupported combinations in test matrix

* Use latest actions steps
  • Loading branch information
patrickomeara authored May 15, 2024
1 parent 39246dc commit 6ee8d3b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
name: 'Lint'
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ matrix.prefer }}-${{ hashFiles('**/composer.json') }}
Expand Down Expand Up @@ -60,25 +60,30 @@ jobs:
name: 'PHP: ${{ matrix.php }}; Laravel: ${{ matrix.laravel }}; Prefer: ${{ matrix.prefer }}'
strategy:
matrix:
php: ['8.1', '8.2']
laravel: ['^9.0', '^10.0']
php: ['8.1', '8.2', '8.3']
laravel: ['^10.0', '^11.0']
prefer: ['prefer-lowest', 'prefer-stable']
include:
- laravel: '^9.0'
testbench: '^7.0'
- laravel: '^10.0'
testbench: '^8.0'
- laravel: '^11.0'
testbench: '^9.0'
exclude:
- php: '8.3'
laravel: '^10.0'
- php: '8.1'
laravel: '^11.0'

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

- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ matrix.prefer }}-php-${{ matrix.php }}-phpunit-${{ matrix.phpunit }}-${{ hashFiles('**/composer.json') }}
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
},
"require": {
"php": "^8.1",
"illuminate/support": "^9.0 || ^10.0",
"illuminate/http": "^9.0 || ^10.0"
"illuminate/support": "^10.0 || ^11.0",
"illuminate/http": "^10.0 || ^11.0"
},
"require-dev": {
"bamarni/composer-bin-plugin": "^1.4"
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Read more about the why in my blog post [Rethinking Laravel's middleware argumen

## Version support

- **PHP**: 8.1, 8.2
- **Laravel**: 9.0, 10.0
- **PHP**: 8.2, 8.3
- **Laravel**: 10.0, 11.0

## Installation

Expand Down

0 comments on commit 6ee8d3b

Please sign in to comment.