File tree Expand file tree Collapse file tree 4 files changed +65
-4
lines changed Expand file tree Collapse file tree 4 files changed +65
-4
lines changed Original file line number Diff line number Diff line change
1
+ name : run-tests
2
+
3
+ on :
4
+ pull_request :
5
+
6
+ jobs :
7
+ run-tests :
8
+ runs-on : ubuntu-latest
9
+ strategy :
10
+ fail-fast : false
11
+ matrix :
12
+ php : [7.3, 7.4, 8.0]
13
+ laravel : [6.*, 7.*, 8.*]
14
+
15
+ name : PHP${{ matrix.php }} - Laravel ${{ matrix.laravel }}
16
+
17
+ steps :
18
+ - name : Update apt
19
+ run : sudo apt-get update --fix-missing
20
+
21
+ - name : Checkout code
22
+ uses : actions/checkout@v2
23
+
24
+ - name : Setup PHP
25
+ uses : shivammathur/setup-php@v2
26
+ with :
27
+ php-version : ${{ matrix.php }}
28
+ coverage : none
29
+
30
+ - name : Setup Problem Matches
31
+ run : |
32
+ echo "::add-matcher::${{ runner.tool_cache }}/php.json"
33
+ echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
34
+
35
+ - name : Install dependencies
36
+ run : |
37
+ composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
38
+ composer update --prefer-dist --no-interaction --no-suggest
39
+
40
+ - name : Execute tests
41
+ run : vendor/bin/phpunit
Original file line number Diff line number Diff line change 1
1
vendor /
2
2
.idea /
3
3
composer.lock
4
- phpunit.xml
5
4
.phpunit.result.cache
Original file line number Diff line number Diff line change 23
23
}
24
24
],
25
25
"require" : {
26
- "php" : " ^7.2" ,
26
+ "php" : " ^7.2|^8.0 " ,
27
27
"guzzlehttp/guzzle" : " ^6.2 || ^7.0" ,
28
28
"guzzlehttp/promises" : " ^1.0" ,
29
29
"guzzlehttp/psr7" : " ^1.4" ,
30
- "illuminate/support" : " ^5.1 || ^6.0 || ^7.0 || ^8.0" ,
31
30
"psr/http-message" : " ^1.0"
32
31
},
33
32
"require-dev" : {
34
- "illuminate/routing" : " ^5.1 || ^6.0 || ^7.0" ,
33
+ "illuminate/routing" : " ^5.1 || ^6.0 || ^7.0 || ^8.0 " ,
35
34
"phpunit/phpunit" : " ^8.2"
36
35
},
37
36
"autoload" : {
Original file line number Diff line number Diff line change
1
+ <?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 =" LaravelUrlShortener" >
14
+ <directory suffix =" Test.php" >tests</directory >
15
+ </testsuite >
16
+ </testsuites >
17
+ <filter >
18
+ <whitelist processUncoveredFilesFromWhitelist =" true" >
19
+ <directory suffix =" .php" >src</directory >
20
+ </whitelist >
21
+ </filter >
22
+ </phpunit >
You can’t perform that action at this time.
0 commit comments