File tree Expand file tree Collapse file tree 5 files changed +44
-23
lines changed Expand file tree Collapse file tree 5 files changed +44
-23
lines changed Original file line number Diff line number Diff line change @@ -11,39 +11,48 @@ jobs:
1111 strategy :
1212 fail-fast : true
1313 matrix :
14- php : [8.1 , 8.0 ]
15- laravel : [9.*, 8 .*]
14+ php : [8.3 , 8.2, 8.1 ]
15+ laravel : [9.*, 10.*, 11 .*]
1616 stability : [prefer-lowest, prefer-stable]
1717 include :
18+ - laravel : 11.*
19+ testbench : 9.*
20+ - laravel : 10.*
21+ testbench : 8.*
1822 - laravel : 9.*
19- testbench : 7.*
20- - laravel : 8.*
21- testbench : ^6.23
23+ testbench : ^7.19
24+ exclude :
25+ # Laravel 11 doesn't support PHP 8.1
26+ - laravel : 11.*
27+ php : 8.1
28+ # Laravel 9 doesn't support PHP 8.3
29+ - laravel : 10.*
30+ php : 8.3
2231
23- name : P ${{ matrix.php }} - L ${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
32+ name : PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.stability }}
2433
2534 steps :
2635 - name : Checkout code
27- uses : actions/checkout@v2
36+ uses : actions/checkout@v4
2837
2938 - name : Get Composer cache directory
3039 id : composer-cache
3140 run : |
32- echo "::set-output name= dir:: $(composer config cache-files-dir)"
41+ echo "dir= $(composer config cache-files-dir)" >> $GITHUB_OUTPUT
3342
34- - uses : actions/cache@v2
43+ - uses : actions/cache@v4
3544 with :
3645 path : ${{ steps.composer-cache.outputs.dir }}
37- key : ${{ runner.os }}-${{ matrix.php }}-composer -${{ hashFiles('**/composer.lock') }}
46+ key : ${{ runner.os }}-${{ matrix.php }}-${{ matrix.laravel }} -${{ matrix.testbench }}-${{ matrix.stability }}-composer
3847 restore-keys : |
39- ${{ runner.os }}-P ${{ matrix.php }}-L ${{ matrix.laravel }}-composer-
48+ ${{ runner.os }}-${{ matrix.php }}-${{ matrix.laravel }}-${{ matrix.testbench }}-${{ matrix.stability }}-composer
4049
4150 - name : Setup PHP
4251 uses : shivammathur/setup-php@v2
4352 with :
4453 php-version : ${{ matrix.php }}
4554 extensions : curl
46- coverage : none
55+ coverage : xdebug
4756
4857 - name : Install dependencies
4958 run : |
Original file line number Diff line number Diff line change 22
33All Notable changes to ` laravel-notification-channels/webpush ` will be documented in this file
44
5+ ## 8.0.0 - 2024-03-16
6+
7+ - Added support for Laravel 11.
8+
9+ ## 7.1.0 - 2023-03-14
10+
11+ - Added support for Laravel 10.
12+
513## 7.0.0 - 2022-03-29
614
715- Upgrade web-push dependency [ #172 ] ( https://github.com/laravel-notification-channels/webpush/pull/172 ) .
Original file line number Diff line number Diff line change @@ -53,6 +53,8 @@ php artisan webpush:vapid
5353
5454This command will set ` VAPID_PUBLIC_KEY ` and ` VAPID_PRIVATE_KEY ` in your ` .env ` file.
5555
56+ > Note: if targeting Safari or iOS after 2023, you will need to include the ` VAPID_SUBJECT ` variable as well or Apple will return a ` BadJwtToken ` error.
57+
5658__ These keys must be safely stored and should not change.__
5759
5860If you still want support for [ Google Cloud Messaging] ( https://console.cloud.google.com ) , set the ` GCM_KEY ` and ` GCM_SENDER_ID ` in your ` .env ` file.
Original file line number Diff line number Diff line change 1212 }
1313 ],
1414 "require" : {
15- "php" : " ^8.0 " ,
16- "illuminate/notifications" : " ^8 .0|^9 .0" ,
17- "illuminate/support" : " ^8 .0|^9 .0" ,
18- "minishlink/web-push" : " ^7 .0"
15+ "php" : " ^8.1 " ,
16+ "illuminate/notifications" : " ^9 .0|^10.0|^11 .0" ,
17+ "illuminate/support" : " ^9 .0|^10.0|^11 .0" ,
18+ "minishlink/web-push" : " ^9 .0"
1919 },
2020 "require-dev" : {
2121 "mockery/mockery" : " ~1.0" ,
22- "orchestra/testbench" : " ^6 .0|^7 .0" ,
23- "phpunit/phpunit" : " ^9.0 "
22+ "orchestra/testbench" : " ^7 .0|^8.0|^9 .0" ,
23+ "phpunit/phpunit" : " ^9.5|^10.5 "
2424 },
2525 "autoload" : {
2626 "psr-4" : {
4747 "scripts" : {
4848 "test" : " vendor/bin/phpunit"
4949 }
50- }
50+ }
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
2- <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" bootstrap =" vendor/autoload.php" backupGlobals =" false" backupStaticAttributes = " false " colors =" true" verbose = " true " convertErrorsToExceptions = " true " convertNoticesToExceptions = " true " convertWarningsToExceptions = " true " processIsolation =" false" stopOnFailure =" false" xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/9.3 /phpunit.xsd" >
2+ <phpunit xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" bootstrap =" vendor/autoload.php" backupGlobals =" false" colors =" true" processIsolation =" false" stopOnFailure =" false" xsi : noNamespaceSchemaLocation =" https://schema.phpunit.de/10.5 /phpunit.xsd" cacheDirectory = " .phpunit.cache " backupStaticProperties = " false " >
33 <coverage >
4- <include >
5- <directory suffix =" .php" >src/</directory >
6- </include >
74 <report >
85 <clover outputFile =" build/logs/clover.xml" />
96 <html outputDirectory =" build/coverage" />
2219 <env name =" DB_CONNECTION" value =" sqlite" />
2320 <env name =" DB_DATABASE" value =" :memory:" />
2421 </php >
22+ <source >
23+ <include >
24+ <directory suffix =" .php" >src/</directory >
25+ </include >
26+ </source >
2527</phpunit >
You can’t perform that action at this time.
0 commit comments