Skip to content

Commit 06bb4d5

Browse files
authored
Merge pull request #17 from asbiin/patch-1
Support Laravel 11
2 parents 9774841 + 5c76907 commit 06bb4d5

File tree

2 files changed

+19
-23
lines changed

2 files changed

+19
-23
lines changed

.github/workflows/run-tests.yml

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,28 @@
11
name: run-tests
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
types: [opened, synchronize, reopened]
48

59
jobs:
610
test:
711
strategy:
8-
fail-fast: true
12+
fail-fast: false
913
matrix:
10-
php: [8.0, 8.1, 8.2]
11-
laravel: [^8.80, 9.*, 10.*]
14+
php: ['8.1', '8.2', '8.3']
15+
laravel: ['9.0', '10.0', '11.0']
1216
dependency-version: [prefer-lowest, prefer-stable]
13-
include:
14-
- laravel: 10.*
15-
testbench: 8.*
16-
- laravel: 9.*
17-
testbench: 7.*
18-
- laravel: ^8.80
19-
testbench: 6.23
2017
exclude:
21-
- laravel: 10.*
22-
php: 8.0
23-
- laravel: ^8.80
24-
php: 8.2
18+
- laravel: '11.0'
19+
php: '8.1'
2520

2621
runs-on: ubuntu-latest
2722
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
2823
steps:
2924
- name: Checkout code
30-
uses: actions/checkout@v2
25+
uses: actions/checkout@v4
3126

3227
- name: Setup PHP
3328
uses: shivammathur/setup-php@v2
@@ -37,7 +32,8 @@ jobs:
3732

3833
- name: Install dependencies
3934
run: |
40-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
41-
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
35+
composer require "illuminate/contracts:^${{ matrix.laravel }}" --no-update
36+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-progress --no-interaction
37+
4238
- name: Execute tests
4339
run: vendor/bin/phpunit

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@
1717
],
1818
"require": {
1919
"ext-mbstring": "*",
20-
"php": "^8.0|^8.1|^8.2",
21-
"illuminate/contracts": "^8.80|^9.0|^10.0"
20+
"php": "^8.1",
21+
"illuminate/contracts": "^9.0|^10.0|^11.0"
2222
},
2323
"require-dev": {
24-
"nunomaduro/collision": "^5.0|^6.0|^7.0",
25-
"orchestra/testbench": "^6.0|^7.0|^8.0",
24+
"nunomaduro/collision": "^6.0|^7.0|^8.1",
25+
"orchestra/testbench": "^7.0|^8.0|^9.0",
2626
"phpunit/phpunit": "^9.5|^10.0",
27-
"spatie/phpunit-snapshot-assertions": "^4.2"
27+
"spatie/phpunit-snapshot-assertions": "^4.2|^5.0"
2828
},
2929
"autoload": {
3030
"psr-4": {

0 commit comments

Comments
 (0)