Skip to content

Commit 8bc3ee8

Browse files
Laravel 12.x Compatibility (#533)
* Bump dependencies for Laravel 12 * Update GitHub Actions for Laravel 12
1 parent b12b496 commit 8bc3ee8

File tree

2 files changed

+50
-43
lines changed

2 files changed

+50
-43
lines changed

.github/workflows/run-tests.yml

Lines changed: 46 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,50 @@
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.3, 8.2, 8.1]
13-
laravel: ["^11.0", "^10.0"]
14-
dependency-version: [prefer-lowest, prefer-stable]
15-
include:
16-
- laravel: "^10.0"
17-
testbench: "^8.0"
18-
- laravel: "^11.0"
19-
testbench: "^9.0"
20-
exclude:
21-
- laravel: "^11.0"
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@v4
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: Install dependencies
38-
run: |
39-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
40-
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
41-
42-
- name: Execute tests
43-
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.3, 8.2, 8.1]
16+
laravel: ['12.0', ^10.0, ^11.0]
17+
dependency-version: [prefer-lowest, prefer-stable]
18+
include:
19+
- laravel: ^10.0
20+
testbench: ^8.0
21+
- laravel: ^11.0
22+
testbench: ^9.0
23+
- laravel: '12.0'
24+
testbench: ^10.0
25+
exclude:
26+
- laravel: ^11.0
27+
php: 8.1
28+
- laravel: '12.0'
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@v4
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: Install dependencies
45+
run: |
46+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
47+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
48+
49+
- name: Execute tests
50+
run: vendor/bin/pest

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@
2121
],
2222
"require": {
2323
"php": "^8.1",
24-
"google/analytics-data": "^0.21.1",
25-
"laravel/framework": "^10.0|^11.0",
24+
"google/analytics-data": "^0.21.1|^0.22",
25+
"laravel/framework": "^10.0|^11.0|^12.0",
2626
"nesbot/carbon": "^2.66|^3.1.0",
2727
"spatie/laravel-package-tools": "^1.13.7",
2828
"symfony/cache": "^6.0|^7.0"
2929
},
3030
"require-dev": {
3131
"league/flysystem": "^3.0",
3232
"mockery/mockery": "^1.5",
33-
"orchestra/testbench": "^8.0|^9.0",
34-
"pestphp/pest": "^2.0",
33+
"orchestra/testbench": "^8.0|^9.0|^10.0",
34+
"pestphp/pest": "^2.0|^3.7",
3535
"spatie/ray": "^1.37"
3636
},
3737
"autoload": {

0 commit comments

Comments
 (0)