Skip to content

Commit

Permalink
Merge pull request #21 from laravel-notification-channels/laravel-12
Browse files Browse the repository at this point in the history
Add support for Laravel 12
  • Loading branch information
dwightwatson authored Feb 24, 2025
2 parents 6f6878f + 6c33a93 commit 4a01760
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,16 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: [8.3]
dependency-version: [prefer-stable]
php: [8.3, 8.4]
laravel: ['11.*', '12.*']
stability: [prefer-lowest, prefer-stable]
include:
- laravel: 11.*
testbench: ^9.11
- laravel: 12.*
testbench: ^10.0

name: P${{ matrix.php }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

steps:
- name: Checkout code
Expand All @@ -31,7 +37,9 @@ jobs:
echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Install dependencies
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Execute tests
run: composer test
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
"php": "~8.3",
"ext-json": "*",
"guzzlehttp/guzzle": "^7.1",
"illuminate/contracts": "^11.0",
"illuminate/notifications": "^11.0",
"illuminate/support": "^11.0"
"illuminate/contracts": "^11.0|^12.0",
"illuminate/notifications": "^11.0|^12.0",
"illuminate/support": "^11.0|^12.0"
},
"require-dev": {
"larastan/larastan": "^2.0",
"larastan/larastan": "^3.0",
"laravel/pint": "^1.0",
"orchestra/testbench": "^9.0",
"orchestra/testbench": "^9.11",
"phpunit/phpunit": "^11.0"
},
"suggest": {
Expand Down

0 comments on commit 4a01760

Please sign in to comment.