Skip to content

Commit

Permalink
Add Laravel 9 support (#206)
Browse files Browse the repository at this point in the history
* Add Laravel 9 support
  • Loading branch information
antonkomarev authored Feb 23, 2022
1 parent 95931d9 commit 80c7ad2
Show file tree
Hide file tree
Showing 6 changed files with 183 additions and 90 deletions.
79 changes: 79 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: tests

on: [ push, pull_request ]

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ ubuntu-latest ]
php: [ 7.2, 7.3, 7.4, 8.0, 8.1 ]
laravel: [ 6.*, 7.*, 8.*, 9.* ]
dependency-version: [ prefer-lowest, prefer-stable ]
exclude:
- laravel: 6.*
dependency-version: prefer-lowest
- laravel: 7.*
dependency-version: prefer-lowest
- laravel: 8.*
dependency-version: prefer-lowest
- laravel: 9.*
dependency-version: prefer-lowest
- laravel: 6.*
php: 8.1
- laravel: 7.*
php: 8.1
- laravel: 8.*
php: 7.2
- laravel: 9.*
php: 7.2
- laravel: 9.*
php: 7.3
- laravel: 9.*
php: 7.4
include:
- laravel: 6.*
testbench: 4.*
- laravel: 7.*
testbench: 5.*
- laravel: 8.*
testbench: 6.*
legacy-factories: 1.*
- laravel: 9.*
testbench: 7.*
legacy-factories: 1.*

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

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, redis, memcached
tools: composer:v2
coverage: none

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Install legacy factories dependency
run: |
composer require "laravel/legacy-factories:${{ matrix.legacy-factories }}" --no-interaction
if: matrix.legacy-factories

- name: Execute tests
run: vendor/bin/phpunit --verbose
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to `laravel-love` will be documented in this file.

## [Unreleased]

## [8.9.0] - 2022-02-23

### Added

- ([#206]) Added Laravel 9 support

## [8.8.1] - 2021-04-03

### Removed
Expand Down Expand Up @@ -487,7 +493,8 @@ Follow [upgrade instructions](UPGRADING.md#from-v5-to-v6) to migrate database to

- Initial release

[Unreleased]: https://github.com/cybercog/laravel-love/compare/8.8.1...master
[Unreleased]: https://github.com/cybercog/laravel-love/compare/8.9.0...master
[8.9.0]: https://github.com/cybercog/laravel-love/compare/8.8.1...8.9.0
[8.8.1]: https://github.com/cybercog/laravel-love/compare/8.8.0...8.8.1
[8.8.0]: https://github.com/cybercog/laravel-love/compare/8.7.1...8.8.0
[8.7.1]: https://github.com/cybercog/laravel-love/compare/8.7.0...8.7.1
Expand Down Expand Up @@ -535,6 +542,7 @@ Follow [upgrade instructions](UPGRADING.md#from-v5-to-v6) to migrate database to
[1.1.1]: https://github.com/cybercog/laravel-love/compare/1.1.0...1.1.1
[1.1.0]: https://github.com/cybercog/laravel-love/compare/1.0.0...1.1.0

[#206]: https://github.com/cybercog/laravel-love/pull/206
[#197]: https://github.com/cybercog/laravel-love/pull/197
[#196]: https://github.com/cybercog/laravel-love/pull/196
[#187]: https://github.com/cybercog/laravel-love/pull/187
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@
},
"require": {
"php": "^7.2.5|^8.0",
"illuminate/database": "^6.20.14|^7.30.4|^8.24",
"illuminate/support": "^6.0|^7.0|^8.0"
"illuminate/database": "^6.20.14|^7.30.4|^8.24|^9.0",
"illuminate/support": "^6.0|^7.0|^8.0|^9.0"
},
"require-dev": {
"mockery/mockery": "^1.0",
"orchestra/database": "~3.7.0|~3.8.0|^4.0|^5.0|^6.0",
"orchestra/testbench": "~3.7.0|~3.8.0|^4.0|^5.0|^6.0",
"orchestra/database": "~3.7.0|~3.8.0|^4.0|^5.0|^6.0|^7.0",
"orchestra/testbench": "~3.7.0|~3.8.0|^4.0|^5.0|^6.0|^7.0",
"phpstan/phpstan": "^0.12.29",
"phpunit/phpunit": "^7.5|^8.0|^9.0"
},
Expand Down
Loading

0 comments on commit 80c7ad2

Please sign in to comment.