Skip to content

Commit 5af12aa

Browse files
Laravel 12.x Compatibility (#366)
* Bump dependencies for Laravel 12 * Update GitHub Actions for Laravel 12 * Update run-tests.yml --------- Co-authored-by: Freek Van der Herten <[email protected]>
1 parent 9145dce commit 5af12aa

File tree

2 files changed

+63
-56
lines changed

2 files changed

+63
-56
lines changed

.github/workflows/run-tests.yml

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

composer.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,24 @@
2121
"ext-json": "*",
2222
"graham-campbell/guzzle-factory": "^5.0|^7.0",
2323
"guzzlehttp/guzzle": "^7.4|^7.2",
24-
"illuminate/cache": "^10.0|^11.0",
25-
"illuminate/config": "^10.0|^11.0",
26-
"illuminate/console": "^10.0|^11.0",
27-
"illuminate/container": "^10.0|^11.0",
28-
"illuminate/contracts": "^10.0|^11.0",
29-
"illuminate/events": "^10.0|^11.0",
30-
"illuminate/filesystem": "^10.0|^11.0",
31-
"illuminate/notifications": "^10.0|^11.0",
32-
"illuminate/support": "^10.0|^11.0",
24+
"illuminate/cache": "^10.0|^11.0|^12.0",
25+
"illuminate/config": "^10.0|^11.0|^12.0",
26+
"illuminate/console": "^10.0|^11.0|^12.0",
27+
"illuminate/container": "^10.0|^11.0|^12.0",
28+
"illuminate/contracts": "^10.0|^11.0|^12.0",
29+
"illuminate/events": "^10.0|^11.0|^12.0",
30+
"illuminate/filesystem": "^10.0|^11.0|^12.0",
31+
"illuminate/notifications": "^10.0|^11.0|^12.0",
32+
"illuminate/support": "^10.0|^11.0|^12.0",
3333
"laravel/slack-notification-channel": "^2.4|^3.2",
3434
"spatie/ssl-certificate": "^1.22|^2.1.2",
3535
"spatie/url": "^2.0.0"
3636
},
3737
"require-dev": {
3838
"mockery/mockery": "^1.4",
39-
"illuminate/testing": "^10.0|^11.0",
40-
"orchestra/testbench": "^8.0|^9.0",
41-
"phpunit/phpunit": "^9.5|^10.5"
39+
"illuminate/testing": "^10.0|^11.0|^12.0",
40+
"orchestra/testbench": "^8.0|^9.0|^10.0",
41+
"phpunit/phpunit": "^9.5|^10.5|^11.5.3"
4242
},
4343
"autoload": {
4444
"psr-4": {

0 commit comments

Comments
 (0)