Skip to content
This repository was archived by the owner on Jun 27, 2024. It is now read-only.

Commit c8e2164

Browse files
authored
Support for Laravel 9 (#60)
1 parent 61217e3 commit c8e2164

File tree

3 files changed

+36
-31
lines changed

3 files changed

+36
-31
lines changed

.github/workflows/php.yml

+32-27
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,40 @@ name: run-tests
33
on: [push, pull_request]
44

55
jobs:
6-
test:
7-
runs-on: ubuntu-latest
8-
strategy:
9-
fail-fast: true
10-
matrix:
11-
php: [8.1, 8.0, 7.4]
12-
laravel: [8.*]
13-
dependency-version: [prefer-lowest, prefer-stable]
14-
include:
15-
- laravel: 8.*
16-
testbench: 6.*
6+
test:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: true
10+
matrix:
11+
php: [8.1, 8.0, 7.4]
12+
laravel: [9.*, 8.*]
13+
dependency-version: [prefer-lowest, prefer-stable]
14+
exclude:
15+
- laravel: 9.*
16+
php: 7.4
17+
include:
18+
- laravel: 9.*
19+
testbench: 7.*
20+
- laravel: 8.*
21+
testbench: 6.*
1722

18-
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
23+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
1924

20-
steps:
21-
- name: Checkout code
22-
uses: actions/checkout@v2
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v2
2328

24-
- name: Setup PHP
25-
uses: shivammathur/setup-php@v2
26-
with:
27-
php-version: ${{ matrix.php }}
28-
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, mysql, mysqli, pdo_mysql
29-
coverage: none
29+
- name: Setup PHP
30+
uses: shivammathur/setup-php@v2
31+
with:
32+
php-version: ${{ matrix.php }}
33+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, mysql, mysqli, pdo_mysql
34+
coverage: none
3035

31-
- name: Install dependencies
32-
run: |
33-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
34-
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
36+
- name: Install dependencies
37+
run: |
38+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
39+
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
3540
36-
- name: Execute tests
37-
run: vendor/bin/phpunit
41+
- name: Execute tests
42+
run: vendor/bin/phpunit

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ We proudly support the community by developing Laravel packages and giving them
3131
## Compatibility
3232

3333
* [Vue 2.6](https://vuejs.org/v2/guide/installation.html) and [Vue 3](https://v3.vuejs.org/guide/installation.html)
34-
* [Laravel 8](https://laravel.com/)
34+
* [Laravel 8 or 9](https://laravel.com/)
3535
* [Inertia.js](https://inertiajs.com/)
3636
* [Tailwind CSS v2](https://tailwindcss.com/) + [Forms plugin](https://github.com/tailwindlabs/tailwindcss-forms)
3737
* PHP 7.4 + 8.0 + 8.1

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
],
1313
"require": {
1414
"php": "^7.4|^8.0|^8.1",
15-
"illuminate/support": "^8.67"
15+
"illuminate/support": "^8.67|^v9.0.0-beta.4"
1616
},
1717
"require-dev": {
18-
"inertiajs/inertia-laravel": "^0.4.5",
19-
"orchestra/testbench": "^6.23",
18+
"inertiajs/inertia-laravel": "^0.5",
19+
"orchestra/testbench": "^6.23|^7.0",
2020
"phpunit/phpunit": "^9.4"
2121
},
2222
"autoload": {

0 commit comments

Comments
 (0)