Skip to content

Commit

Permalink
Remove support to Laravel 9 (#30)
Browse files Browse the repository at this point in the history
* Remove support to Laravel 9

* Remove support to Laravel 9
  • Loading branch information
cesargb authored Mar 9, 2024
1 parent ae3ab05 commit bcdbbec
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 20 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,22 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.1
php-version: 8.2

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
key: ${{ runner.os }}-php-8.2-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-
${{ runner.os }}-php-8.2-
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: |
composer install
composer dump
- name: Run analyse phpstan
run: vendor/bin/phpstan analyse --error-format github
6 changes: 3 additions & 3 deletions .github/workflows/style-fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.2'
coverage: xdebug

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v4
with:
path: vendor
key: ${{ runner.os }}-php-8.1-${{ hashFiles('**/composer.lock') }}
key: ${{ runner.os }}-php-8.2-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php--8.1
${{ runner.os }}-php--8.2
- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
Expand Down
10 changes: 2 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,17 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.3, 8.2, 8.1, 8.0]
laravel: ['9.*', '10.*', '11.*']
php: [8.3, 8.2, 8.1]
laravel: ['10.*', '11.*']
dependency-version: [prefer-stable]
include:
- laravel: 9.*
testbench: 7.*
- laravel: 10.*
testbench: 8.*
- laravel: 11.*
testbench: 9.*
exclude:
- laravel: 10.*
php: 8.0
- laravel: 11.*
php: 8.1
- laravel: 11.*
php: 8.0

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}

Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
],
"type": "library",
"require": {
"php": "^8.0",
"illuminate/console": "^9.0|^10.0|^11.0",
"illuminate/database": "^9.0|^10.0|^11.0",
"illuminate/events": "^9.0|^10.0|^11.0",
"illuminate/support": "^9.0|^10.0|^11.0"
"php": "^8.1",
"illuminate/console": "^10.0|^11.0",
"illuminate/database": "^10.0|^11.0",
"illuminate/events": "^10.0|^11.0",
"illuminate/support": "^10.0|^11.0"
},
"require-dev": {
"phpunit/phpunit": "^9.0|^10.5",
"orchestra/testbench": "^7.0|^8.0|^9.0",
"orchestra/testbench": "^8.0|^9.0",
"laravel/legacy-factories": "^1.0.4",
"friendsofphp/php-cs-fixer": "^3.13",
"larastan/larastan": "^2.0"
Expand Down

0 comments on commit bcdbbec

Please sign in to comment.