File tree Expand file tree Collapse file tree 1 file changed +77
-0
lines changed Expand file tree Collapse file tree 1 file changed +77
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ testsuite :
7+ name : Unittests
8+ runs-on : ubuntu-20.04
9+ strategy :
10+ fail-fast : false
11+ matrix :
12+ php-version : ['7.4', '8.0']
13+
14+ steps :
15+ - uses : actions/checkout@v1
16+ with :
17+ fetch-depth : 1
18+
19+ - name : Setup PHP
20+ uses : shivammathur/setup-php@v2
21+ with :
22+ php-version : ' 7.4'
23+ extensions : mbstring, json, fileinfo
24+ tools : pecl
25+ coverage : pcov
26+
27+ - name : Composer install
28+ run : |
29+ if [[ ${{ matrix.prefer-lowest == 'prefer-lowest' }} ]]; then
30+ composer update --prefer-lowest --prefer-stable
31+ else
32+ composer install
33+ fi
34+
35+ - name : Phive install
36+ run : php config/composer_phive.php
37+
38+ - name : Run PHPUnit
39+ run : |
40+ if [[ ${{ matrix.php-version }} == '7.4' ]]; then
41+ bin/phpunit --coverage-clover=coverage.xml
42+ else
43+ bin/phpunit
44+ fi
45+
46+ - name : Code Coverage Report
47+ if : success() && matrix.php-version == '7.4'
48+ uses : codecov/codecov-action@v1
49+
50+ cs-stan :
51+ name : Coding Standard & Static Analysis
52+ runs-on : ubuntu-20.04
53+
54+ steps :
55+ - uses : actions/checkout@v1
56+ with :
57+ fetch-depth : 1
58+
59+ - name : Setup PHP
60+ uses : shivammathur/setup-php@v2
61+ with :
62+ php-version : ' 7.4'
63+ extensions : mbstring, json, fileinfo
64+ coverage : none
65+ tools : pecl
66+
67+ - name : Composer install
68+ run : composer update --prefer-lowest --prefer-stable
69+
70+ - name : Phive install
71+ run : php config/composer_phive.php
72+
73+ - name : Run phpcs
74+ run : bin/phpcs --version && bin/phpcs --report=checkstyle --standard=phpcs.xml src/ tests/
75+
76+ - name : Run phpstan
77+ run : bin/phpstan -V && bin/phpstan analyse src -l 5 --error-format=github
You can’t perform that action at this time.
0 commit comments