Skip to content

Commit

Permalink
add support for laravel 9
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmajor committed Jan 17, 2022
1 parent 7068320 commit a0bceac
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/sca.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ on:

jobs:
static-analysis:
name: PHP ${{ matrix.php }}, ${{ matrix.stability }}
name: PHP ${{ matrix.php }}, L ${{ matrix.laravel }}, ${{ matrix.stability }}

runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.0', '8.1']
laravel: ['8.*', '9.*']
stability: [prefer-lowest, prefer-stable]

steps:
Expand All @@ -36,7 +37,9 @@ jobs:
restore-keys: composer-

- name: Install Composer dependencies
run: composer update --${{ matrix.stability }} --no-progress --no-interaction
run: |
composer require laravel/framework:${{ matrix.laravel }} --no-progress --no-interaction --no-update
composer update --${{ matrix.stability }} --no-progress --no-interaction
- name: Run PHPStan
run: vendor/bin/phpstan analyse --no-progress --no-interaction
7 changes: 5 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ on:

jobs:
unit-tests:
name: PHP ${{ matrix.php }}, ${{ matrix.stability }}
name: PHP ${{ matrix.php }}, L ${{ matrix.laravel }}, ${{ matrix.stability }}

runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.0', '8.1']
laravel: ['8.*', '9.*']
stability: [prefer-lowest, prefer-stable]

steps:
Expand All @@ -36,7 +37,9 @@ jobs:
restore-keys: composer-

- name: Install Composer dependencies
run: composer update --${{ matrix.stability }} --no-progress --no-interaction
run: |
composer require laravel/framework:${{ matrix.laravel }} --no-progress --no-interaction --no-update
composer update --${{ matrix.stability }} --no-progress --no-interaction
- name: Execute tests
run: vendor/bin/phpunit
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
"require": {
"php": "^8.0",
"jrmajor/fluent": "v0.3.0",
"laravel/framework": "^8.0"
"laravel/framework": "^8.0 || ^9.0"
},
"require-dev": {
"jrmajor/cs": "^0.3.3",
"orchestra/testbench": "^6.24",
"orchestra/testbench": "^6.24 || ^7.0",
"phpstan/phpstan": "^1.4",
"phpunit/phpunit": "^9.5"
},
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a0bceac

Please sign in to comment.