Skip to content

Commit a0bceac

Browse files
committed
add support for laravel 9
1 parent 7068320 commit a0bceac

4 files changed

Lines changed: 13 additions & 7 deletions

File tree

.github/workflows/sca.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ on:
66

77
jobs:
88
static-analysis:
9-
name: PHP ${{ matrix.php }}, ${{ matrix.stability }}
9+
name: PHP ${{ matrix.php }}, L ${{ matrix.laravel }}, ${{ matrix.stability }}
1010

1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
1414
php: ['8.0', '8.1']
15+
laravel: ['8.*', '9.*']
1516
stability: [prefer-lowest, prefer-stable]
1617

1718
steps:
@@ -36,7 +37,9 @@ jobs:
3637
restore-keys: composer-
3738

3839
- name: Install Composer dependencies
39-
run: composer update --${{ matrix.stability }} --no-progress --no-interaction
40+
run: |
41+
composer require laravel/framework:${{ matrix.laravel }} --no-progress --no-interaction --no-update
42+
composer update --${{ matrix.stability }} --no-progress --no-interaction
4043
4144
- name: Run PHPStan
4245
run: vendor/bin/phpstan analyse --no-progress --no-interaction

.github/workflows/tests.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ on:
66

77
jobs:
88
unit-tests:
9-
name: PHP ${{ matrix.php }}, ${{ matrix.stability }}
9+
name: PHP ${{ matrix.php }}, L ${{ matrix.laravel }}, ${{ matrix.stability }}
1010

1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
1414
php: ['8.0', '8.1']
15+
laravel: ['8.*', '9.*']
1516
stability: [prefer-lowest, prefer-stable]
1617

1718
steps:
@@ -36,7 +37,9 @@ jobs:
3637
restore-keys: composer-
3738

3839
- name: Install Composer dependencies
39-
run: composer update --${{ matrix.stability }} --no-progress --no-interaction
40+
run: |
41+
composer require laravel/framework:${{ matrix.laravel }} --no-progress --no-interaction --no-update
42+
composer update --${{ matrix.stability }} --no-progress --no-interaction
4043
4144
- name: Execute tests
4245
run: vendor/bin/phpunit

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
"require": {
2727
"php": "^8.0",
2828
"jrmajor/fluent": "v0.3.0",
29-
"laravel/framework": "^8.0"
29+
"laravel/framework": "^8.0 || ^9.0"
3030
},
3131
"require-dev": {
3232
"jrmajor/cs": "^0.3.3",
33-
"orchestra/testbench": "^6.24",
33+
"orchestra/testbench": "^6.24 || ^7.0",
3434
"phpstan/phpstan": "^1.4",
3535
"phpunit/phpunit": "^9.5"
3636
},

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)