File tree 3 files changed +41
-4
lines changed
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 14
14
"ext-json" : " *" ,
15
15
"guzzlehttp/guzzle" : " ^6.2 || ^7.0" ,
16
16
"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 "
18
18
},
19
19
"require-dev" : {
20
20
"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 " ,
22
22
"phpunit/phpunit" : " ^7.5 || ^8.0 || ^9.0"
23
23
},
24
24
"autoload" : {
Original file line number Diff line number Diff line change 3
3
namespace NotificationChannels \Pushwoosh ;
4
4
5
5
use GuzzleHttp \ClientInterface ;
6
- use function GuzzleHttp \json_decode ;
7
- use function GuzzleHttp \json_encode ;
8
6
use GuzzleHttp \Psr7 \Request ;
9
7
use Illuminate \Contracts \Events \Dispatcher ;
10
8
use NotificationChannels \Pushwoosh \Concerns \DetectsPushwooshErrors ;
11
9
use NotificationChannels \Pushwoosh \Events \UnknownDevices ;
12
10
use NotificationChannels \Pushwoosh \Exceptions \PushwooshException ;
13
11
use Throwable ;
12
+ use function GuzzleHttp \json_decode ;
13
+ use function GuzzleHttp \json_encode ;
14
14
15
15
class Pushwoosh
16
16
{
You can’t perform that action at this time.
0 commit comments