Skip to content

Commit 20f92a1

Browse files
committed
Laravel 12 support
1 parent 46957f5 commit 20f92a1

File tree

4 files changed

+115
-7
lines changed

4 files changed

+115
-7
lines changed

.github/workflows/analyse.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: analyse
2+
3+
on: ['push', 'pull_request']
4+
5+
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.4]
13+
laravel: [11.*]
14+
stability: [prefer-stable]
15+
include:
16+
- laravel: 11.*
17+
testbench: 9.*
18+
19+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
20+
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v4
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, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
30+
coverage: none
31+
32+
- name: Install dependencies
33+
run: |
34+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
35+
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
36+
- name: Analyse
37+
run: composer analyse

.github/workflows/style.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: style
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
jobs:
8+
style:
9+
name: Style
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Setup PHP
17+
uses: shivammathur/setup-php@v2
18+
with:
19+
php-version: 8.4
20+
extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
21+
coverage: none
22+
23+
- name: Install dependencies
24+
run: composer install
25+
26+
- name: Style
27+
run: composer fix-style
28+
29+
- name: Commit Changes
30+
uses: stefanzweifel/git-auto-commit-action@v4
31+
with:
32+
commit_message: Fix styling changes

.github/workflows/tests.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: tests
2+
3+
on: ['push', 'pull_request']
4+
5+
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.4]
13+
laravel: [11.*]
14+
stability: [prefer-lowest, prefer-stable]
15+
include:
16+
- laravel: 11.*
17+
testbench: 9.*
18+
19+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
20+
21+
steps:
22+
- name: Checkout code
23+
uses: actions/checkout@v4
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, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
30+
coverage: none
31+
32+
- name: Install dependencies
33+
run: |
34+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
35+
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
36+
- name: Execute tests
37+
run: composer test

composer.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,27 @@
1717
}
1818
],
1919
"require": {
20-
"php": "^8.1",
20+
"php": "^8.3",
2121
"justbetter/laravel-akeneo-products": "^2.2",
22-
"laravel/nova": "^4.0"
22+
"laravel/framework": "^11.0|^12.0",
23+
"laravel/nova": "^5.0"
2324
},
2425
"require-dev": {
25-
"laravel/pint": "^1.10"
26+
"laravel/pint": "^1.20"
2627
},
2728
"autoload": {
2829
"psr-4": {
2930
"JustBetter\\AkeneoProductsNova\\": "src"
3031
}
3132
},
3233
"scripts": {
33-
"analyse": "phpstan",
34+
"analyse": "phpstan --memory-limit=256M",
3435
"style": "pint --test",
3536
"quality": [
36-
"@analyse",
37-
"@style"
38-
]
37+
"@style",
38+
"@analyse"
39+
],
40+
"coverage": "XDEBUG_MODE=coverage php vendor/bin/pest --coverage --min=0"
3941
},
4042
"config": {
4143
"sort-packages": true,

0 commit comments

Comments
 (0)