Skip to content

Commit

Permalink
Laravel 11.x Compatibility (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
laravel-shift authored Mar 27, 2024
1 parent 33b6ace commit 8988d5f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 9 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,32 @@
name: Unit Test
on: [ push ]

on:
- push

jobs:
run:
runs-on: ubuntu-latest

strategy:
matrix:
php-version: ['8.0', '8.1']
laravel-version: ['^8', '^9', 10.0]
php-version: ['8.0', '8.1', '8.2']
laravel-version: [10.0, '11.0', ^8, ^9]
exclude:
- laravel-version: '11.0'
php-version: '8.0'
- laravel-version: '11.0'
php-version: '8.1'

steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}

- uses: actions/checkout@v2

- name: Install laravel
run: composer require illuminate/contracts:${{ matrix.laravel-version }} --no-interaction --prefer-dist --no-progress

- name: Run unit tests
run: vendor/bin/phpunit

10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
],
"require": {
"php": "^8.0.2",
"illuminate/contracts": "^8.0|^9.0|^10.0",
"illuminate/http": "^8.0|^9.0|^10.0",
"illuminate/support": "^8.0|^9.0|^10.0"
"illuminate/contracts": "^8.0|^9.0|^10.0|^11.0",
"illuminate/http": "^8.0|^9.0|^10.0|^11.0",
"illuminate/support": "^8.0|^9.0|^10.0|^11.0"
},
"require-dev": {
"orchestra/testbench": "^6.0|^7.0|^8.0",
"phpunit/phpunit": "^9.0"
"orchestra/testbench": "^6.0|^7.0|^8.0|^9.0",
"phpunit/phpunit": "^9.0|^10.5"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 8988d5f

Please sign in to comment.