File tree Expand file tree Collapse file tree 2 files changed +33
-1
lines changed Expand file tree Collapse file tree 2 files changed +33
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : PHP
2
+
3
+ on : [push]
4
+
5
+ jobs :
6
+ run :
7
+ runs-on : ubuntu-latest
8
+ strategy :
9
+ max-parallel : 15
10
+ fail-fast : false
11
+ matrix :
12
+ laravel-version : ['5.8.*', '^6.0', '^7.0']
13
+ php-versions : ['7.2', '7.4']
14
+ name : PHP ${{ matrix.php-versions }} on Laravel ${{ matrix.laravel-version }}
15
+ steps :
16
+ - name : Checkout
17
+ uses : actions/checkout@master
18
+ - name : Setup PHP
19
+ uses : shivammathur/setup-php@master
20
+ with :
21
+ php-version : ${{ matrix.php-versions }}
22
+ extension-csv : mbstring, xdebug
23
+ coverage : xdebug
24
+ - name : Install dependencies
25
+ run : |
26
+ composer require --no-update --no-interaction "illuminate/support:${{ matrix.laravel-version }}"
27
+ composer update --no-interaction --prefer-dist --no-suggest
28
+ - name : Lint composer.json
29
+ run : composer validate
30
+ - name : Run Tests
31
+ run : composer test:ci
Original file line number Diff line number Diff line change 38
38
}
39
39
},
40
40
"scripts" : {
41
- "test" : " vendor/bin/phpunit"
41
+ "test" : " vendor/bin/phpunit" ,
42
+ "test:ci" : " phpunit --verbose --coverage-clover=coverage.xml"
42
43
},
43
44
"config" : {
44
45
"sort-packages" : true
You can’t perform that action at this time.
0 commit comments