Skip to content

Commit

Permalink
Added Laravel 10 support
Browse files Browse the repository at this point in the history
  • Loading branch information
fulopattila122 committed Feb 16, 2023
1 parent c09da41 commit a4f63c8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 4 deletions.
14 changes: 13 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ jobs:
strategy:
matrix:
php: ['8.0', '8.1']
laravel: ['8.22', '8.83', '9.0']
laravel: ['8.22', '8.83', '9.0', '9.52', '10.0']
enum: ['2', '3', '4']
exclude:
- php: '8.1'
laravel: '8.22'
- php: '8.0'
laravel: '10.0'
name: PHP ${{ matrix.php }} Laravel ${{ matrix.laravel }} Enum ${{ matrix.enum }}
steps:
- name: Checkout
Expand All @@ -28,6 +30,16 @@ jobs:
run: |
composer require "konekt/enum:${{ matrix.enum }}.*" --no-update -v
composer require "laravel/framework:${{ matrix.laravel }}.*" --no-update -v
- name: Testbench Version Adjustments
run: |
is_smaller_version() [[ $(echo -e "$1\n$2"|sort -V|head -1) != $2 ]]
is_smaller_version "${{ matrix.laravel }}" "9.36" && composer req "orchestra/testbench-core:7.10.2" --no-update
is_smaller_version "${{ matrix.laravel }}" "9.34" && composer req "orchestra/testbench-core:7.8.1" --no-update
is_smaller_version "${{ matrix.laravel }}" "9.32" && composer req "orchestra/testbench-core:7.7.1" --no-update
is_smaller_version "${{ matrix.laravel }}" "9.12" && composer req "orchestra/testbench-core:7.4.0" --no-update
is_smaller_version "${{ matrix.laravel }}" "9.7" && composer req "orchestra/testbench-core:7.3.0" --no-update
is_smaller_version "${{ matrix.laravel }}" "9.6" && composer req "orchestra/testbench-core:7.2.0" --no-update
is_smaller_version "${{ matrix.laravel }}" "9.5" && composer req "orchestra/testbench-core:7.1.0" --no-update || true
- name: Composer Install
run: composer install --prefer-dist --no-progress --no-interaction
- name: Create Database
Expand Down
5 changes: 5 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Changelog
### Konekt Enum Eloquent

## Unreleased
##### 2023-XX-YY

- Added Laravel 10 support

## 1.8.1
##### 2022-03-11

Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@
"require": {
"php": "^8.0",
"konekt/enum": "^2.0.2 || ^3.0 | ^4.0",
"illuminate/database": "8.*|9.*"
"illuminate/database": "8.*|9.*|10.*"
},
"require-dev": {
"phpunit/phpunit": "8 - 10",
"illuminate/events": "8.*|9.*"
"phpunit/phpunit": "9 - 10",
"illuminate/events": "8.*|9.*|10.*"
},
"autoload": {
"psr-4": { "Konekt\\Enum\\Eloquent\\": "src/" }
Expand Down

0 comments on commit a4f63c8

Please sign in to comment.