Skip to content

Commit d36d4d8

Browse files
committed
Add Laravel 10 & PHP 8.1 support
1 parent c9f14be commit d36d4d8

File tree

2 files changed

+43
-13
lines changed

2 files changed

+43
-13
lines changed

.github/workflows/tests.yml

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
strategy:
2020
fail-fast: true
2121
matrix:
22-
php: [8.2, 8.3, 8.4]
23-
laravel: [11, 12]
22+
php: [ 8.2, 8.3, 8.4 ]
23+
laravel: [ 11, 12 ]
2424

2525
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
2626

@@ -39,7 +39,37 @@ jobs:
3939

4040
- name: Install dependencies
4141
run: |
42-
composer update --prefer-dist --no-interaction --no-progress --with="illuminate/contracts:^${{ matrix.laravel }}"
42+
composer update --prefer-dist --no-interaction --no-progress --with="illuminate/contracts:^${{ matrix.laravel }}"
43+
44+
- name: Execute tests
45+
run: vendor/bin/pest
46+
test-l10:
47+
runs-on: ubuntu-22.04
48+
49+
strategy:
50+
fail-fast: true
51+
matrix:
52+
php: [ 8.1, 8.2 ]
53+
laravel: [ 10 ]
54+
55+
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
56+
57+
steps:
58+
- name: Checkout code
59+
uses: actions/checkout@v4
60+
61+
- name: Setup PHP
62+
uses: shivammathur/setup-php@v2
63+
with:
64+
php-version: ${{ matrix.php }}
65+
extensions: dom, curl, libxml, mbstring, zip
66+
ini-values: error_reporting=E_ALL
67+
tools: composer:v2
68+
coverage: none
69+
70+
- name: Install dependencies
71+
run: |
72+
composer update --prefer-dist --no-interaction --no-progress --with="illuminate/contracts:^${{ matrix.laravel }}"
4373
4474
- name: Execute tests
4575
run: vendor/bin/pest

composer.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,20 @@
1919
}
2020
],
2121
"require": {
22-
"php": "^8.2",
23-
"illuminate/console": "^11.0|^12.0",
24-
"illuminate/contracts": "^11.0|^12.0",
25-
"illuminate/routing": "^11.0|^12.0",
26-
"illuminate/support": "^11.0|^12.0",
22+
"php": "^8.1|^8.2",
23+
"illuminate/console": "^10.0|^11.0|^12.0",
24+
"illuminate/contracts": "^10.0|^11.0|^12.0",
25+
"illuminate/routing": "^10.0|^11.0|^12.0",
26+
"illuminate/support": "^10.0|^11.0|^12.0",
2727
"laravel/mcp": "dev-main",
28-
"laravel/prompts": "^0.3",
29-
"laravel/roster": "^0.1.0"
28+
"laravel/prompts": "^0.1.9|^0.3",
29+
"laravel/roster": "^0.2"
3030
},
3131
"require-dev": {
32-
"laravel/pint": "^1.23",
32+
"laravel/pint": "^1.14|^1.23",
3333
"mockery/mockery": "^1.6",
34-
"orchestra/testbench": "^9.0|^10.0",
35-
"pestphp/pest": "^3.0",
34+
"orchestra/testbench": "^8.22.0|^9.0|^10.0",
35+
"pestphp/pest": "^2.0|^3.0",
3636
"phpstan/phpstan": "^2.0"
3737
},
3838
"autoload": {

0 commit comments

Comments
 (0)