Skip to content

Commit

Permalink
feat: add Laravel 11 support
Browse files Browse the repository at this point in the history
  • Loading branch information
seancheung committed Mar 19, 2024
1 parent 7194717 commit f3c2f2f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/laravel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,17 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
laravel-versions: ["^6.0", "^7.0", "^8.0", "^9.0", "^10.0"]
php-versions: ["7.2", "7.3", "7.4", "8.0", "8.1"]
laravel-versions: ["^6.0", "^7.0", "^8.0", "^9.0", "^10.0", "^11.0"]
php-versions: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]
exclude:
- laravel-versions: "^6.0"
php-versions: "8.1"
- laravel-versions: "^6.0"
php-versions: "8.2"
- laravel-versions: "^7.0"
php-versions: "8.1"
- laravel-versions: "^7.0"
php-versions: "8.2"
- laravel-versions: "^8.0"
php-versions: "7.2"
- laravel-versions: "^9.0"
Expand All @@ -34,6 +38,16 @@ jobs:
php-versions: "7.4"
- laravel-versions: "^10.0"
php-versions: "8.0"
- laravel-versions: "^11.0"
php-versions: "7.2"
- laravel-versions: "^11.0"
php-versions: "7.3"
- laravel-versions: "^11.0"
php-versions: "7.4"
- laravel-versions: "^11.0"
php-versions: "8.0"
- laravel-versions: "^11.0"
php-versions: "8.1"
name: PHP ${{ matrix.php-versions }} with Laravel ${{ matrix.laravel-versions }}
steps:
- name: Checkout
Expand All @@ -47,6 +61,9 @@ jobs:
run: |
composer require --dev --no-progress --no-suggest -n -o "laravel/framework:${{ matrix.laravel-versions }}"
composer install --no-progress --no-suggest -n -o
- name: Migrate phpunit config
if: ${{ matrix.php-versions >= '8.1' }}
run: composer exec -- phpunit --migrate-configuration
- name: Run test suite
run: composer test:dist
# - name: Run test coverage
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"keywords": ["laravel", "log", "history", "tracking", "eloquent", "model"],
"homepage": "https://github.com/seancheung/history",
"require": {
"php": "^7.2|^7.2.5|^7.3|^8.0|^8.1",
"illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0"
"php": "^7.2|^7.2.5|^7.3|^8.0|^8.1|^8.2",
"illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0"
},
"license": "MIT",
"authors": [
Expand All @@ -30,8 +30,8 @@
}
},
"require-dev": {
"phpunit/phpunit": "^8.3|^8.4|^9.0",
"orchestra/testbench": "^4.8|^5.2|^6.2|^7.5|^8.0",
"phpunit/phpunit": "^8.3|^8.4|^9.0|^10.5",
"orchestra/testbench": "^4.8|^5.2|^6.2|^7.5|^8.0|^9.0",
"mockery/mockery": "^1.2",
"php-coveralls/php-coveralls": "^2.1"
},
Expand Down

0 comments on commit f3c2f2f

Please sign in to comment.