File tree Expand file tree Collapse file tree 3 files changed +41
-4
lines changed
Expand file tree Collapse file tree 3 files changed +41
-4
lines changed Original file line number Diff line number Diff line change 1+ name : tests
2+
3+ on :
4+ push :
5+ pull_request :
6+
7+ jobs :
8+ laravel :
9+ runs-on : ubuntu-latest
10+ strategy :
11+ fail-fast : true
12+ matrix :
13+ laravel : [ 9.*, 10.* ]
14+ php : [ 8.0, 8.1 ]
15+ exclude :
16+ - laravel : 10.*
17+ php : 8.0
18+ name : Laravel ${{ matrix.laravel }} on PHP ${{ matrix.php }}
19+ steps :
20+ - name : Checkout code
21+ uses : actions/checkout@v3
22+
23+ - name : Setup PHP
24+ uses : shivammathur/setup-php@v2
25+ with :
26+ php-version : ${{ matrix.php }}
27+ tools : composer:v2
28+
29+ - name : Install dependencies
30+ run : |
31+ composer require --dev --no-update laravel/framework:"${{ matrix.laravel }}"
32+ composer install --prefer-dist --no-interaction --no-progress
33+ env :
34+ COMPOSER_AUTH : ${{ secrets.COMPOSER_AUTH }}
35+ - name : Run tests
36+ run : ./vendor/bin/phpunit
37+
Original file line number Diff line number Diff line change 1414 "ext-json" : " *" ,
1515 "guzzlehttp/guzzle" : " ^6.2 || ^7.0" ,
1616 "guzzlehttp/psr7" : " ^1.0 || ^2.0" ,
17- "laravel/framework" : " ^5.5 || ^6.0 || ^7.0 || ^8.0 || ^9.0"
17+ "laravel/framework" : " ^5.5 || ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0 "
1818 },
1919 "require-dev" : {
2020 "mockery/mockery" : " ^1.3.1" ,
21- "orchestra/testbench" : " ^3.5 || ^4.0 || ^5.0 || ^6.0" ,
21+ "orchestra/testbench" : " ^3.5 || ^4.0 || ^5.0 || ^6.0 || ^7.0 || ^8.0 " ,
2222 "phpunit/phpunit" : " ^7.5 || ^8.0 || ^9.0"
2323 },
2424 "autoload" : {
Original file line number Diff line number Diff line change 33namespace NotificationChannels \Pushwoosh ;
44
55use GuzzleHttp \ClientInterface ;
6- use function GuzzleHttp \json_decode ;
7- use function GuzzleHttp \json_encode ;
86use GuzzleHttp \Psr7 \Request ;
97use Illuminate \Contracts \Events \Dispatcher ;
108use NotificationChannels \Pushwoosh \Concerns \DetectsPushwooshErrors ;
119use NotificationChannels \Pushwoosh \Events \UnknownDevices ;
1210use NotificationChannels \Pushwoosh \Exceptions \PushwooshException ;
1311use Throwable ;
12+ use function GuzzleHttp \json_decode ;
13+ use function GuzzleHttp \json_encode ;
1414
1515class Pushwoosh
1616{
You can’t perform that action at this time.
0 commit comments