Skip to content

Commit 30e6027

Browse files
Elhebertlaravel-shiftDieter Stinglhamber
authored
Laravel 11 (#95)
* Bump dependencies for Laravel 11 * Update GitHub Actions for Laravel 11 * ci: update version --------- Co-authored-by: Shift <shift@laravelshift.com> Co-authored-by: Dieter Stinglhamber <elhebert@hotmail.be>
1 parent 2994368 commit 30e6027

File tree

6 files changed

+2455
-1498
lines changed

6 files changed

+2455
-1498
lines changed

.github/workflows/phpunit-l10.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Run PHPUnit tests
1+
name: Run PHPUnit tests L10.*
22

33
on:
44
push:
@@ -15,12 +15,12 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
php: [8.1]
18+
php: [8.1, 8.2, 8.3]
1919
laravel: [10.*]
2020
dependency: [prefer-lowest, prefer-stable]
2121
include:
2222
- laravel: 10.*
23-
testbench: 8.*
23+
testbench: ^8.20
2424

2525
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency }}
2626

.github/workflows/phpunit-l11.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Run PHPUnit tests L11.*
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
tests:
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
php: [8.2, 8.3]
19+
laravel: [11.*]
20+
dependency: [prefer-lowest, prefer-stable]
21+
include:
22+
- laravel: 11.*
23+
testbench: 9.*
24+
25+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency }}
26+
27+
steps:
28+
- name: Checkout code
29+
uses: actions/checkout@v3
30+
31+
- name: Cache dependencies
32+
uses: actions/cache@v3
33+
with:
34+
path: ~/.composer/cache/files
35+
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
36+
37+
- name: Setup PHP
38+
uses: shivammathur/setup-php@v2
39+
with:
40+
php-version: ${{ matrix.php }}
41+
extensions: dom, curl, libxml, mbstring, pcntl, intl, exif, iconv
42+
coverage: none
43+
44+
- name: Install dependencies
45+
run: |
46+
composer require "illuminate/support:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
47+
composer update --${{ matrix.dependency }} --prefer-dist --no-interaction --no-suggest
48+
49+
- name: Execute tests
50+
run: vendor/bin/phpunit

.github/workflows/phpunit-l8.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Run PHPUnit tests
1+
name: Run PHPUnit tests L8.*
22

33
on:
44
push:
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
php: [8.0, 7.4, 7.3, 8.1]
18+
php: [7.3, 7.4, 8.0, 8.1]
1919
laravel: [8.*]
2020
dependency: [prefer-lowest, prefer-stable]
2121
include:

.github/workflows/phpunit-l9.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Run PHPUnit tests
1+
name: Run PHPUnit tests L9.*
22

33
on:
44
push:
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
php: [8.0, 8.1]
18+
php: [8.0, 8.1, 8.2]
1919
laravel: [9.*]
2020
dependency: [prefer-lowest, prefer-stable]
2121
include:

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
],
1515
"require": {
1616
"php": "^7.3 | ^7.4 | ^8.0",
17-
"illuminate/support": "^8.71 | ^9.0 | ^10.0"
17+
"illuminate/support": "^8.71 | ^9.0 | ^10.0 | ^11.0"
1818
},
1919
"require-dev": {
20-
"orchestra/testbench": "^6.23 | ^7.0 | ^8.0",
21-
"phpunit/phpunit": "^9.5.10",
20+
"orchestra/testbench": "^6.23 | ^7.0 | ^8.0 | ^9.0",
21+
"phpunit/phpunit": "^9.5.10 | ^10.5",
2222
"mockery/mockery": "^1.4.4"
2323
},
2424
"autoload": {

0 commit comments

Comments
 (0)