File tree Expand file tree Collapse file tree 2 files changed +47
-4
lines changed Expand file tree Collapse file tree 2 files changed +47
-4
lines changed Original file line number Diff line number Diff line change 45
45
with :
46
46
token : ${{ secrets.CODECOV_TOKEN }}
47
47
file : ./coverage.xml
48
+
49
+ test-php8 :
50
+ runs-on : ${{ matrix.os }}
51
+ strategy :
52
+ fail-fast : true
53
+ matrix :
54
+ os : [ubuntu-latest, windows-latest]
55
+ php : [8.0, 8.1]
56
+ laravel : [9.*]
57
+ dependency-version : [prefer-stable]
58
+
59
+ name : P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
60
+
61
+ steps :
62
+ - name : Checkout code
63
+ uses : actions/checkout@v1
64
+
65
+ - name : Cache dependencies
66
+ uses : actions/cache@v1
67
+ with :
68
+ path : ~/.composer/cache/files
69
+ key : dependencies-laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
70
+
71
+ - name : Setup PHP
72
+ uses : shivammathur/setup-php@v2
73
+ with :
74
+ php-version : ${{ matrix.php }}
75
+ extensions : mbstring
76
+ coverage : xdebug
77
+
78
+ - name : Install dependencies
79
+ run : |
80
+ composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
81
+ composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
82
+
83
+ - name : Execute tests
84
+ run : vendor/bin/phpunit --coverage-clover=coverage.xml
85
+
86
+ - name : Upload coverage to Codecov
87
+ uses : codecov/codecov-action@v1
88
+ with :
89
+ token : ${{ secrets.CODECOV_TOKEN }}
90
+ file : ./coverage.xml
Original file line number Diff line number Diff line change 22
22
}
23
23
],
24
24
"require" : {
25
- "php" : " ^7.3" ,
26
- "illuminate/support" : " ^5.8|^6.0|^7.0|^8.0"
25
+ "php" : " ^7.3|^8.0 " ,
26
+ "illuminate/support" : " ^5.8|^6.0|^7.0|^8.0|^9.0 "
27
27
},
28
28
"require-dev" : {
29
- "orchestra/testbench" : " ^3.8|^4.0|^5.0|^6.0" ,
30
- "phpunit/phpunit" : " ^8.2"
29
+ "orchestra/testbench" : " ^3.8|^4.0|^5.0|^6.0|^7.0 " ,
30
+ "phpunit/phpunit" : " ^8.2|^9.0 "
31
31
},
32
32
"autoload" : {
33
33
"psr-4" : {
You can’t perform that action at this time.
0 commit comments