File tree Expand file tree Collapse file tree 4 files changed +64
-54
lines changed
Expand file tree Collapse file tree 4 files changed +64
-54
lines changed Original file line number Diff line number Diff line change 1+ name : test
2+
3+ on : [push]
4+
5+ jobs :
6+ test :
7+ runs-on : ${{ matrix.os }}
8+
9+ strategy :
10+ fail-fast : true
11+ matrix :
12+ os : [ubuntu-latest]
13+ php : [8.0, 8.1]
14+ laravel : [8.*, 9.*]
15+ stability : [prefer-lowest, prefer-stable]
16+ include :
17+ - laravel : 9.*
18+ testbench : 7.*
19+ - laravel : 8.*
20+ testbench : ^6.23
21+
22+ name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }}
23+
24+ steps :
25+ - uses : actions/checkout@v1
26+
27+ - name : Setup PHP
28+ uses : shivammathur/setup-php@v2
29+ with :
30+ php-version : ${{ matrix.php }}
31+
32+ - name : Install composer dependencies
33+ run : |
34+ composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
35+ composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
36+
37+ - name : Run PHPUnit
38+ run : vendor/bin/phpunit --verbose
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1212 }
1313 ],
1414 "require" : {
15- "php" : " ^7.3|^ 8.0" ,
15+ "php" : " ^8.0" ,
1616 "abraham/twitteroauth" : " ^2.0.0" ,
17- "illuminate/notifications" : " ^8.0" ,
18- "illuminate/support" : " ^8.0" ,
17+ "illuminate/notifications" : " ^8.0|^9.0 " ,
18+ "illuminate/support" : " ^8.0|^9.0 " ,
1919 "kylewm/brevity" : " ^0.2.9"
2020 },
2121
2222 "require-dev" : {
2323 "mockery/mockery" : " ^1.3.1" ,
2424 "phpunit/phpunit" : " ^9.3" ,
25- "orchestra/testbench" : " ~6 .0"
25+ "orchestra/testbench" : " ^7 .0"
2626 },
2727 "autoload" : {
2828 "psr-4" : {
4646 " NotificationChannels\\ Twitter\\ TwitterServiceProvider"
4747 ]
4848 }
49- }
49+ },
50+ "minimum-stability" : " dev" ,
51+ "prefer-stable" : true
5052}
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
2- <phpunit bootstrap =" vendor/autoload.php"
3- backupGlobals =" false"
4- backupStaticAttributes =" false"
5- colors =" true"
6- verbose =" true"
7- convertErrorsToExceptions =" true"
8- convertNoticesToExceptions =" true"
9- convertWarningsToExceptions =" true"
10- processIsolation =" false"
11- stopOnFailure =" false" >
12- <testsuites >
13- <testsuite name =" Twitter Test Suite" >
14- <directory >tests</directory >
15- </testsuite >
16- </testsuites >
17- <filter >
18- <whitelist >
19- <directory suffix =" .php" >src/</directory >
20- </whitelist >
21- </filter >
22- <logging >
23- <log type =" tap" target =" build/report.tap" />
24- <log type =" junit" target =" build/report.junit.xml" />
25- <log type =" coverage-html" target =" build/coverage" />
26- <log type =" coverage-text" target =" build/coverage.txt" />
27- <log type =" coverage-clover" target =" build/logs/clover.xml" />
28- </logging >
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" >
3+ <coverage >
4+ <include >
5+ <directory suffix =" .php" >src/</directory >
6+ </include >
7+ <report >
8+ <clover outputFile =" build/logs/clover.xml" />
9+ <html outputDirectory =" build/coverage" />
10+ <text outputFile =" build/coverage.txt" />
11+ </report >
12+ </coverage >
13+ <testsuites >
14+ <testsuite name =" Twitter Test Suite" >
15+ <directory >tests</directory >
16+ </testsuite >
17+ </testsuites >
18+ <logging >
19+ <junit outputFile =" build/report.junit.xml" />
20+ </logging >
2921</phpunit >
You can’t perform that action at this time.
0 commit comments