Skip to content

Commit fca9f76

Browse files
authored
Livewire v4 support (#1)
* add livewire v4 * improve test matrix * fix tests * wip - fix workflow * add lock file to gitignore * wip - test without prefer-lowest * bump testbench * bump larastan * upgrade pest * bring back prefer-lowest * revert * testbench for laravel 10 in ci * backwards compat larastan with laravel 10 * backwards compat pest for laravel 10 * wip * update phpstan.neon * fix * fix
1 parent ddccc65 commit fca9f76

File tree

5 files changed

+16
-11445
lines changed

5 files changed

+16
-11445
lines changed

.github/workflows/tests.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ jobs:
1515
strategy:
1616
fail-fast: true
1717
matrix:
18-
php: [8.2, 8.3]
19-
laravel: [^10, ^11]
20-
dependency-version: [prefer-stable]
18+
php: [8.4, 8.3]
19+
laravel: [^12, ^11, ^10]
20+
livewire: [^3, ^4@beta]
21+
stability: [prefer-stable]
22+
23+
name: LV${{ matrix.livewire }} - L${{ matrix.laravel }} - P${{ matrix.php }} - ${{ matrix.stability }}
2124

2225
steps:
2326
- name: Checkout repository
@@ -44,7 +47,9 @@ jobs:
4447
${{ runner.os }}-composer-
4548
4649
- name: Install Composer dependecies
47-
run: composer update --no-progress --optimize-autoloader --${{ matrix.dependency-version }}
50+
run: |
51+
composer require "laravel/framework:${{ matrix.laravel }}" "livewire/livewire:${{ matrix.livewire }}" --no-interaction --no-update
52+
composer update --no-progress --optimize-autoloader --${{ matrix.stability }}
4853
4954
- name: Directory Permissions
5055
run: sudo chown -R $(whoami) vendor/pestphp/pest/.temp vendor/orchestra

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.DS_Store
2+
composer.lock
23
/vendor
34
/node_modules

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@
2121
"minimum-stability": "stable",
2222
"require": {
2323
"php": "^8.1",
24-
"livewire/livewire": "^3"
24+
"livewire/livewire": "^3|^4.0@beta"
2525
},
2626
"require-dev": {
2727
"friendsofphp/php-cs-fixer": "^3",
2828
"laravel/pint": "^1",
29-
"larastan/larastan": "^2.9",
29+
"larastan/larastan": "^2|^3",
3030
"squizlabs/php_codesniffer": "^3",
3131
"tightenco/duster": "^3",
3232
"tightenco/tlint": "^9",
33-
"orchestra/testbench": "^9",
34-
"pestphp/pest": "^2.35"
33+
"orchestra/testbench": "^8|^9|^10",
34+
"pestphp/pest": "^2|^3|^4"
3535
},
3636
"scripts": {
3737
"lint": "vendor/bin/duster lint",

0 commit comments

Comments
 (0)