Skip to content

Commit af5a6d1

Browse files
committed
feat: add support for Laravel 13
1 parent 5a9575a commit af5a6d1

File tree

3 files changed

+33
-21
lines changed

3 files changed

+33
-21
lines changed

.github/workflows/static.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@ on:
55
paths:
66
- '**.php'
77
- 'phpstan.neon.dist'
8+
- '.github/workflows/static.yml'
9+
pull_request:
10+
branches: [main]
811

912
jobs:
1013
phpstan:
1114
name: PHPStan
1215
runs-on: ubuntu-latest
1316
steps:
14-
- uses: actions/checkout@v5
17+
- uses: actions/checkout@v6
1518

1619
- name: Setup PHP
1720
uses: shivammathur/setup-php@v2
@@ -32,16 +35,16 @@ jobs:
3235

3336
steps:
3437
- name: Checkout
35-
uses: actions/checkout@v5
38+
uses: actions/checkout@v6
3639

3740
- name: Setup PHP
3841
uses: shivammathur/setup-php@v2
3942
with:
4043
php-version: '8.4'
4144
coverage: none
4245

43-
- name: Install Dependencies
44-
run: composer update --prefer-dist --no-interaction --no-progress --ansi
46+
- name: Install composer dependencies
47+
uses: ramsey/composer-install@v3
4548

4649
- name: Run ECS
4750
run: composer test:style

.github/workflows/tests.yml

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,31 @@
11
name: Tests
22

33
on:
4-
pull_request:
54
push:
6-
branches:
7-
- master
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
88

99
jobs:
10-
php-tests:
11-
name: Testing on PHP ${{ matrix.php }}
10+
test:
1211
runs-on: ${{ matrix.os }}
1312
strategy:
1413
matrix:
1514
os: [ubuntu-latest]
16-
php: [8.5, 8.4]
17-
steps:
15+
php: [8.4, 8.5]
16+
laravel: [12.*, 13.*]
17+
stability: [prefer-lowest, prefer-stable]
18+
include:
19+
- laravel: 13.*
20+
testbench: ^11.0
21+
- laravel: 12.*
22+
testbench: ^10.7
1823

24+
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
25+
26+
steps:
1927
- name: Checkout code
20-
uses: actions/checkout@v5
28+
uses: actions/checkout@v6
2129

2230
- name: Setup PHP
2331
uses: shivammathur/setup-php@v2
@@ -30,8 +38,10 @@ jobs:
3038
echo "::add-matcher::${{ runner.tool_cache }}/php.json"
3139
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
3240
33-
- name: Install Composer dependencies
34-
run: composer install --no-progress --prefer-dist --optimize-autoloader --ansi
41+
- name: Install dependencies
42+
run: |
43+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update --ansi
44+
composer update --${{ matrix.stability }} --prefer-dist --no-interaction --ansi
3545
36-
- name: Run tests
46+
- name: Execute tests
3747
run: composer test:unit

composer.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,15 @@
1616
"ext-json": "*",
1717
"ext-pdo": "*",
1818
"doctrine/dbal": "^3.9",
19-
"symfony/console": "^6.4 || ^7.0",
20-
"symfony/var-dumper": "^6.4 || ^7.0",
21-
"thecodingmachine/safe": "^2.5 || ^3.0",
22-
"fakerphp/faker": "^1.10"
19+
"symfony/console": "^7.0|^8.0",
20+
"symfony/var-dumper": "^7.0|^8.0",
21+
"thecodingmachine/safe": "^3.0",
22+
"fakerphp/faker": "^1.24"
2323
},
2424
"require-dev": {
25-
"roave/security-advisories": "dev-latest",
2625
"pestphp/pest": "^4.1",
2726
"mockery/mockery": "^1.6",
28-
"worksome/coding-style": "^3.3"
27+
"worksome/coding-style": "^3.4"
2928
},
3029
"autoload": {
3130
"psr-4": {

0 commit comments

Comments
 (0)