Skip to content

Commit

Permalink
Merge pull request #60 from asbiin/patch-1
Browse files Browse the repository at this point in the history
Support Laravel 11
  • Loading branch information
amiranagram authored Mar 27, 2024
2 parents 7b84d0c + ef22799 commit 0c31941
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 58 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/php-cs-fixer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

Expand Down
71 changes: 22 additions & 49 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: tests

on: [ pull_request ]
on:
push:
branches:
- master
- 0.x
pull_request:
types: [opened, synchronize, reopened]

jobs:
test:
Expand All @@ -9,57 +15,24 @@ jobs:
fail-fast: true
matrix:
os: [ ubuntu-latest ]
php: [ 7.2.5, 8.0, 8.1 ]
laravel: [ 6.*, 8.*, ^9.33, 10.* ]
testbench: [ ^4.0, ^6.6, ^7.0, ^8.0 ]
php: [ '8.0', '8.1', '8.2', '8.3' ]
laravel: [ '8.0', '9.33', '10.0', '11.0' ]
stability: [ prefer-lowest, prefer-stable ]
exclude:
- php: 7.2.5
laravel: 10.*
- php: 8.0
laravel: 10.*
- php: 8.1
laravel: 6.*
- php: 7.2.5
laravel: 8.*
- php: 7.2.5
laravel: ^9.33
- php: 7.2.5
testbench: ^8.0
- php: 7.2.5
testbench: ^6.6
- php: 7.2.5
testbench: ^7.0
- php: 8.0
testbench: ^8.0
- php: 8.1
testbench: ^4.0
- php: 8.1
testbench: ^6.6
- php: 8.1
testbench: ^7.0
- laravel: 6.*
testbench: ^6.6
- laravel: 6.*
testbench: ^7.0
- laravel: 8.*
testbench: ^4.0
- laravel: 8.*
testbench: ^7.0
- laravel: 8.*
testbench: ^8.0
- laravel: ^9.33
testbench: ^4.0
- laravel: ^9.33
testbench: ^6.6
- laravel: ^9.33
testbench: ^8.0
- php: '8.0'
laravel: '10.0'
- php: '8.0'
laravel: '11.0'
- php: '8.1'
laravel: '11.0'
- laravel: '8.0'
stability: prefer-lowest

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

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

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -75,8 +48,8 @@ jobs:
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update --dev
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
composer require "illuminate/support:^${{ matrix.laravel }}" --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
- name: Execute tests
run: vendor/bin/phpunit
run: vendor/bin/phpunit --no-coverage
2 changes: 1 addition & 1 deletion .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: 0.x

Expand Down
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
"require": {
"php": "^7.2.5|^8.0",
"ext-json": "*",
"illuminate/config": "^6.0|^8.0|^9.0|^10.0",
"illuminate/console": "^6.0|^8.0|^9.0|^10.0",
"illuminate/support": "^6.0|^8.0|^9.0|^10.0",
"illuminate/filesystem": "^6.0|^8.0|^9.0|^10.0",
"symfony/finder": "^4.4|^5.1|^6.0"
"illuminate/config": "^8.0|^9.0|^10.0|^11.0",
"illuminate/console": "^8.0|^9.0|^10.0|^11.0",
"illuminate/support": "^8.0|^9.0|^10.0|^11.0",
"illuminate/filesystem": "^8.0|^9.0|^10.0|^11.0",
"symfony/finder": "^5.1|^6.0|^7.0"
},
"require-dev": {
"mockery/mockery": "^1.3.3",
"orchestra/testbench": "^4.0|^6.6|^7.0|^8.0",
"phpunit/phpunit": "^8.5|^9.5"
"orchestra/testbench": "^6.6|^7.0|^8.0|^9.0",
"phpunit/phpunit": "^9.5|^10.0"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 0c31941

Please sign in to comment.