Skip to content

Commit

Permalink
Laravel 11.x Compatibility (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
laravel-shift authored Mar 14, 2024
1 parent f0128ce commit 761d57b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,48 @@
name: PHP

on: [push, pull_request]
on:
- push
- pull_request

jobs:
run:
runs-on: ubuntu-latest

strategy:
max-parallel: 15
fail-fast: false
matrix:
laravel-version: ['^8.0', '^9.0', 10.*]
laravel-version: ['10.*', '11.0', ^8.0, ^9.0]
php-version: ['8.0', '8.1', '8.2']
exclude:
- laravel-version: 11.*
php-version: '8.0'
- laravel-version: 11.*
php-version: '8.1'

name: PHP ${{ matrix.php-version }} on Laravel ${{ matrix.laravel-version }}

steps:
- name: Checkout
uses: actions/checkout@master

- name: Setup PHP
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php-version }}
extension-csv: mbstring, xdebug
coverage: xdebug

- name: Install dependencies
run: |
composer require --no-update --no-interaction "illuminate/support:${{ matrix.laravel-version }}"
composer update --no-interaction --prefer-dist --no-suggest
- name: Lint composer.json
run: composer validate

- name: Run Tests
run: composer test:unit

- name: Run Integration Tests
run: composer test:integration
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@
],
"require": {
"php": ">=7.2|^8.0",
"twilio/sdk": "~6.0",
"illuminate/notifications": "^7.0 || ^8.0 || ^9.0 || ^10.0",
"illuminate/support": "^7.0 || ^8.0 || ^9.0 || ^10.0",
"illuminate/events": "^7.0 || ^8.0 || ^9.0 || ^10.0",
"illuminate/queue": "^7.0 || ^8.0 || ^9.0 || ^10.0"
"twilio/sdk": "~6.0|^7.16",
"illuminate/notifications": "^7.0 || ^8.0 || ^9.0 || ^10.0|^11.0",
"illuminate/support": "^7.0 || ^8.0 || ^9.0 || ^10.0|^11.0",
"illuminate/events": "^7.0 || ^8.0 || ^9.0 || ^10.0|^11.0",
"illuminate/queue": "^7.0 || ^8.0 || ^9.0 || ^10.0|^11.0"
},
"require-dev": {
"mockery/mockery": "^1.3",
"phpunit/phpunit": "^8.5|^9.5",
"orchestra/testbench": "^5.0 || ^6.0 || ^7.0 || ^8.0"
"phpunit/phpunit": "^8.5|^9.5|^10.5",
"orchestra/testbench": "^5.0 || ^6.0 || ^7.0 || ^8.0|^9.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 761d57b

Please sign in to comment.