Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Laravel 11 #60

Merged
merged 1 commit into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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