Skip to content

Commit

Permalink
Add Laravel 11 Support (#17)
Browse files Browse the repository at this point in the history
Add Laravel 11 Support
  • Loading branch information
geisi authored Feb 25, 2024
1 parent 40f9dff commit ab4beb8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 25 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,33 +2,36 @@ name: run-tests

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
fail-fast: true
matrix:
os: [ ubuntu-latest ]
php: [ 8.2, 8.1 ]
laravel: [ 9.*, 10.* ]
stability: [ prefer-lowest, prefer-stable ]
os: [ubuntu-latest]
php: [8.3, 8.2, 8.1]
laravel: ["^11.0", "^10.0", "^9.38"]
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 9.*
testbench: 7.*
carbon: ^2.63
- laravel: 10.*
- laravel: "^11.0"
testbench: 9.*
- laravel: "^10.0"
testbench: 8.*
carbon: ^2.63
- laravel: "^9.38"
testbench: 7.*
exclude:
- laravel: "^11.0"
php: 8.1

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

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -44,11 +47,8 @@ jobs:
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: List Installed Dependencies
run: composer show -D
composer require 'illuminate/contracts=${{ matrix.laravel }}.0' --no-update
composer update --prefer-dist --no-interaction --no-progress --${{ matrix.stability }}
- name: Execute tests
run: vendor/bin/pest
13 changes: 6 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,21 @@
],
"require": {
"php": "^8.1",
"illuminate/contracts": "^9.38|^10.0",
"illuminate/contracts": "^9.38|^10.0|^11.0",
"spatie/laravel-package-tools": "^1.14.0",
"symfony/mailer": "^6.0"
"symfony/mailer": "^6.0|^7.0"
},
"require-dev": {
"guzzlehttp/guzzle": "^7.5",
"laravel/pint": "^1.0",
"nunomaduro/collision": "^6.0",
"nunomaduro/collision": "^6.0|^7.0|^8.0",
"nunomaduro/larastan": "^2.0.1",
"orchestra/testbench": "^7.0|^8.0",
"pestphp/pest": "^1.21",
"pestphp/pest-plugin-laravel": "^1.1",
"orchestra/testbench": "^7.0|^8.0|^9.0",
"pestphp/pest": "^1.21|^2.0",
"pestphp/pest-plugin-laravel": "^1.21|^2.0",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-phpunit": "^1.0",
"phpunit/phpunit": "^9.5",
"spatie/laravel-ray": "^1.26"
},
"autoload": {
Expand Down

0 comments on commit ab4beb8

Please sign in to comment.