Skip to content

Commit a7553a4

Browse files
Laravel 11.x Compatibility (#2579)
* Bump dependencies for Laravel 11 * Update GitHub Actions for Laravel 11
1 parent 494c837 commit a7553a4

File tree

2 files changed

+50
-42
lines changed

2 files changed

+50
-42
lines changed

.github/workflows/run-tests.yml

Lines changed: 47 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,51 @@
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: true
10-
matrix:
11-
os: [ubuntu-latest, windows-latest]
12-
php: [8.1]
13-
laravel: [^10.0]
14-
stability: [prefer-stable]
15-
include:
16-
- laravel: ^10.0
17-
testbench: ^8.0
18-
19-
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
20-
21-
steps:
22-
- name: Checkout code
23-
uses: actions/checkout@v2
24-
25-
- name: Setup PHP
26-
uses: shivammathur/setup-php@v2
27-
with:
28-
php-version: ${{ matrix.php }}
29-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
30-
coverage: none
31-
32-
- name: Setup problem matchers
33-
run: |
34-
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
35-
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
36-
37-
- name: Install dependencies
38-
run: |
39-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
40-
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
41-
42-
- name: Execute tests
43-
run: ./vendor/bin/testbench package:test
8+
test:
9+
runs-on: ${{ matrix.os }}
10+
11+
strategy:
12+
fail-fast: true
13+
matrix:
14+
os: [ubuntu-latest, windows-latest]
15+
php: [8.1, '8.2']
16+
laravel: ['11.0', ^10.0]
17+
stability: [prefer-stable]
18+
include:
19+
- laravel: ^10.0
20+
testbench: ^8.0
21+
- laravel: '11.0'
22+
testbench: ^9.0
23+
exclude:
24+
- laravel: '11.0'
25+
php: 8.1
26+
27+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
28+
29+
steps:
30+
- name: Checkout code
31+
uses: actions/checkout@v2
32+
33+
- name: Setup PHP
34+
uses: shivammathur/setup-php@v2
35+
with:
36+
php-version: ${{ matrix.php }}
37+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
38+
coverage: none
39+
40+
- name: Setup problem matchers
41+
run: |
42+
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
43+
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
44+
45+
- name: Install dependencies
46+
run: |
47+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
48+
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
49+
50+
- name: Execute tests
51+
run: ./vendor/bin/testbench package:test

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
],
1919
"require": {
2020
"php": "^8.0|^8.1",
21-
"illuminate/support": "^9.0|^10.0",
21+
"illuminate/support": "^9.0|^10.0|^11.0",
2222
"opis/closure": "^3.6"
2323
},
2424
"require-dev": {
2525
"brianium/paratest": "^6.2|^7.0.6",
26-
"nunomaduro/collision": "^5.3|^6.1|^7.0",
26+
"nunomaduro/collision": "^5.3|^6.1|^7.0|^8.0",
2727
"nunomaduro/larastan": "^2.0",
28-
"orchestra/testbench": "^8.0",
28+
"orchestra/testbench": "^8.0|^9.0",
2929
"phpstan/extension-installer": "^1.1",
3030
"phpunit/phpunit": "^10.0",
3131
"spatie/laravel-ray": "^1.9",

0 commit comments

Comments
 (0)