Skip to content

Commit

Permalink
Add support for Laravel 11 (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
StevePorter92 committed Mar 17, 2024
1 parent d6dde09 commit baf6f9d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ jobs:
runs-on: "ubuntu-latest"
strategy:
matrix:
php: ["8.1", "8.2"]
php: ["8.1", "8.2", "8.3"]
laravel: ["^9.0", "^10.0", "^11.0"]
stability: ["prefer-stable", "prefer-lowest"]
name: PHP ${{ matrix.php }}, ${{ matrix.stability }}
exclude:
- laravel: "^11.0"
php: "8.1"
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.stability }}

steps:
- name: Checkout
Expand All @@ -29,7 +33,9 @@ jobs:
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install composer dependencies
run: composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
run: |
composer require "illuminate/collections:${{ matrix.laravel }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Run tests
run: php vendor/bin/phpunit --testdox
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Unreleased

- Added support for Laravel 11 ([#21](https://github.com/jeromegamez/typed-collection/issues/21))

## 6.1.0 - 2023-02-17

- Added support for Laravel 10
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}
],
"require": {
"illuminate/collections": "^9.0|^10.0"
"illuminate/collections": "^9.0|^10.0|^11.0"
},
"require-dev": {
"phpunit/phpunit": "^10.0.7",
Expand Down

0 comments on commit baf6f9d

Please sign in to comment.