Skip to content

Commit e34f22a

Browse files
authored
Merge pull request #288 from laravel-shift/l12-compatibility
Laravel 12.x Compatibility
2 parents 09ad43f + e58b213 commit e34f22a

File tree

2 files changed

+65
-56
lines changed

2 files changed

+65
-56
lines changed

.github/workflows/run-tests.yml

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

composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
"homepage": "https://github.com/spatie/laravel-sluggable",
1818
"require": {
1919
"php": "^8.0",
20-
"illuminate/database": "^8.0|^9.0|^10.0|^11.0",
21-
"illuminate/support": "^8.0|^9.0|^10.0|^11.0"
20+
"illuminate/database": "^8.0|^9.0|^10.0|^11.0|^12.0",
21+
"illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0"
2222
},
2323
"require-dev": {
24-
"orchestra/testbench": "^6.23|^7.0|^8.0|^9.0",
25-
"pestphp/pest": "^1.20|^2.0",
24+
"orchestra/testbench": "^6.23|^7.0|^8.0|^9.0|^10.0",
25+
"pestphp/pest": "^1.20|^2.0|^3.7",
2626
"spatie/laravel-translatable": "^5.0|^6.0"
2727
},
2828
"minimum-stability": "dev",

0 commit comments

Comments
 (0)