Skip to content

Commit 3f16941

Browse files
Laravel 11.x Compatibility (#144)
* Bump dependencies for Laravel 11 * Update GitHub Actions for Laravel 11
1 parent 86ce8a2 commit 3f16941

File tree

2 files changed

+56
-47
lines changed

2 files changed

+56
-47
lines changed

.github/workflows/run-tests.yml

Lines changed: 50 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,54 @@
11
name: run-tests
22

3-
on: [push, pull_request]
3+
on:
4+
- push
5+
- pull_request
46

57
jobs:
6-
test:
7-
runs-on: ${{ matrix.os }}
8-
strategy:
9-
fail-fast: false
10-
matrix:
11-
os: [ubuntu-latest]
12-
php: [8.2, 8.1, 8.0]
13-
laravel: [10.*, 9.*, 8.*]
14-
dependency-version: [prefer-lowest, prefer-stable]
15-
include:
16-
- laravel: 10.*
17-
testbench: 8.*
18-
- laravel: 9.*
19-
testbench: 7.*
20-
- laravel: 8.*
21-
testbench: ^6.23
22-
exclude:
23-
- laravel: 10.*
24-
php: 8.0
25-
26-
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
27-
28-
steps:
29-
- name: Checkout code
30-
uses: actions/checkout@v1
31-
32-
- name: Setup PHP
33-
uses: shivammathur/setup-php@v2
34-
with:
35-
php-version: ${{ matrix.php }}
36-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
37-
coverage: none
38-
39-
- name: Install dependencies
40-
run: |
41-
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.63" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
42-
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
43-
44-
- name: Execute tests
45-
run: vendor/bin/pest
8+
test:
9+
runs-on: ${{ matrix.os }}
10+
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os: [ubuntu-latest]
15+
php: [8.2, 8.1, 8.0]
16+
laravel: ['8.*', '9.*', '10.*', '11.*']
17+
dependency-version: [prefer-lowest, prefer-stable]
18+
include:
19+
- laravel: 10.*
20+
testbench: 8.*
21+
- laravel: 9.*
22+
testbench: 7.*
23+
- laravel: 8.*
24+
testbench: ^6.23
25+
- laravel: 11.*
26+
testbench: 9.*
27+
exclude:
28+
- laravel: 10.*
29+
php: 8.0
30+
- laravel: 11.*
31+
php: 8.1
32+
- laravel: 11.*
33+
php: 8.0
34+
35+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
36+
37+
steps:
38+
- name: Checkout code
39+
uses: actions/checkout@v1
40+
41+
- name: Setup PHP
42+
uses: shivammathur/setup-php@v2
43+
with:
44+
php-version: ${{ matrix.php }}
45+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
46+
coverage: none
47+
48+
- name: Install dependencies
49+
run: |
50+
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.63" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
51+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
52+
53+
- name: Execute tests
54+
run: vendor/bin/pest

composer.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@
1717
],
1818
"require": {
1919
"php": "^8.0",
20-
"illuminate/auth": "^8.0|^9.0|^10.0",
21-
"illuminate/contracts": "^8.71|^9.0|^10.0",
22-
"illuminate/support": "^8.71|^9.0|^10.0",
20+
"illuminate/auth": "^8.0|^9.0|^10.0|^11.0",
21+
"illuminate/contracts": "^8.71|^9.0|^10.0|^11.0",
22+
"illuminate/support": "^8.71|^9.0|^10.0|^11.0",
2323
"spatie/menu": "^3.0"
2424
},
2525
"require-dev": {
2626
"fakerphp/faker": "^1.9",
27-
"orchestra/testbench": "^6.23|^7.0|^8.0",
28-
"phpunit/phpunit": "^9.4",
29-
"pestphp/pest": "^1.22"
27+
"orchestra/testbench": "^6.23|^7.0|^8.0|^9.0",
28+
"phpunit/phpunit": "^9.4|^10.5",
29+
"pestphp/pest": "^1.22|^2.34"
3030
},
3131
"autoload": {
3232
"psr-4": {

0 commit comments

Comments
 (0)