File tree Expand file tree Collapse file tree 4 files changed +46
-31
lines changed
Expand file tree Collapse file tree 4 files changed +46
-31
lines changed Original file line number Diff line number Diff line change 66.editorconfig export-ignore
77.gitattributes export-ignore
88.gitignore export-ignore
9- .travis.yml export-ignore
109phpunit.xml.dist export-ignore
Original file line number Diff line number Diff line change 1+ name : tests
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ tests :
7+ runs-on : ubuntu-latest
8+ strategy :
9+ fail-fast : false
10+ matrix :
11+ php : [7.3, 7.4, 8.0]
12+ stability : [prefer-lowest, prefer-stable]
13+
14+ name : PHP ${{ matrix.php }} / ${{ matrix.stability }}
15+
16+ steps :
17+ - name : Checkout code
18+ uses : actions/checkout@v2
19+
20+ - name : Setup PHP
21+ uses : shivammathur/setup-php@v2
22+ with :
23+ php-version : ${{ matrix.php }}
24+ tools : composer:v2
25+ coverage : xdebug
26+
27+ - name : Setup problem matchers
28+ run : |
29+ echo "::add-matcher::${{ runner.tool_cache }}/php.json"
30+ echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
31+
32+ - name : Install dependencies
33+ uses : nick-invision/retry@v2
34+ with :
35+ timeout_minutes : 5
36+ max_attempts : 5
37+ command : composer update --prefer-dist --${{ matrix.stability }} --no-interaction --no-progress --ansi
38+
39+ - name : Run tests
40+ run : vendor/bin/phpunit --verbose --colors=always --coverage-clover ./build/logs/clover.xml
41+
42+ - name : Code coverage
43+ uses : codecov/codecov-action@v1
44+ with :
45+ file : ./build/logs/clover.xml
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2020 },
2121 "require-dev" : {
2222 "phpunit/phpunit" : " ^8.4|^9.0" ,
23- "mockery/mockery" : " ^1.3.1 " ,
23+ "mockery/mockery" : " ^1.3.2 " ,
2424 "orchestra/testbench" : " ^6.0" ,
2525 "illuminated/testing-tools" : " ^8.0" ,
2626 "predis/predis" : " ^1.1.1" ,
You can’t perform that action at this time.
0 commit comments