Skip to content

Commit 3f8bed2

Browse files
committed
Laravel 12 support
1 parent 0497537 commit 3f8bed2

File tree

5 files changed

+19
-18
lines changed

5 files changed

+19
-18
lines changed

.github/workflows/analyse.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
fail-fast: true
1010
matrix:
1111
os: [ubuntu-latest]
12-
php: [8.3]
12+
php: [8.3, 8.4]
1313
laravel: [11.*]
1414
stability: [prefer-stable]
1515
include:

.github/workflows/coverage.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
fail-fast: true
1010
matrix:
1111
os: [ubuntu-latest]
12-
php: [8.3]
12+
php: [8.4]
1313
laravel: [11.*]
1414
stability: [prefer-stable]
1515
include:
@@ -31,8 +31,7 @@ jobs:
3131

3232
- name: Install dependencies
3333
run: |
34-
composer config allow-plugins.pestphp/pest-plugin true
3534
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
3635
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
3736
- name: Execute tests
38-
run: XDEBUG_MODE=coverage php vendor/bin/pest --coverage --min=100
37+
run: composer coverage

.github/workflows/style.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: Setup PHP
1717
uses: shivammathur/setup-php@v2
1818
with:
19-
php-version: 8.3
19+
php-version: 8.4
2020
extensions: dom, curl, libxml, mbstring, zip, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
2121
coverage: none
2222

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
fail-fast: true
1010
matrix:
1111
os: [ubuntu-latest]
12-
php: [8.2, 8.3]
12+
php: [8.3, 8.4]
1313
laravel: [11.*]
1414
stability: [prefer-lowest, prefer-stable]
1515
include:

composer.json

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@
44
"type": "package",
55
"license": "MIT",
66
"require": {
7-
"php": "^8.2",
7+
"php": "^8.3",
88
"guzzlehttp/guzzle": "^7.5",
9-
"laravel/framework": "^11.0",
109
"justbetter/laravel-magento-client": "^2.4",
11-
"justbetter/laravel-magento-webhooks": "^2.1"
10+
"justbetter/laravel-magento-webhooks": "^2.1",
11+
"laravel/framework": "^11.0|^12.0"
1212
},
1313
"require-dev": {
14-
"larastan/larastan": "^2.5",
15-
"laravel/pint": "^1.16",
14+
"larastan/larastan": "^3.0",
15+
"laravel/pint": "^1.20",
1616
"orchestra/testbench": "^9.0",
17-
"pestphp/pest": "^2.0",
18-
"phpstan/phpstan-mockery": "^1.1",
19-
"phpunit/phpunit": "^10.0"
17+
"pestphp/pest": "^3.7",
18+
"phpstan/phpstan-mockery": "^2.0",
19+
"phpunit/phpunit": "^11.5"
2020
},
2121
"authors": [
2222
{
@@ -42,14 +42,16 @@
4242
},
4343
"scripts": {
4444
"test": "phpunit",
45-
"analyse": "phpstan",
45+
"analyse": "phpstan --memory-limit=256M",
4646
"style": "pint --test",
4747
"quality": [
48-
"@test",
48+
"@style",
4949
"@analyse",
50-
"@style"
50+
"@test",
51+
"@coverage"
5152
],
52-
"fix-style": "pint"
53+
"fix-style": "pint",
54+
"coverage": "XDEBUG_MODE=coverage php vendor/bin/pest --coverage --min=100"
5355
},
5456
"config": {
5557
"sort-packages": true,

0 commit comments

Comments
 (0)