File tree Expand file tree Collapse file tree 2 files changed +45
-23
lines changed Expand file tree Collapse file tree 2 files changed +45
-23
lines changed 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.
You can’t perform that action at this time.
0 commit comments