File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ name : ci
2+ on :
3+ push :
4+ branches :
5+ - master
6+ pull_request :
7+ branches :
8+ - master
9+
10+ jobs :
11+ build :
12+ name : Build
13+ runs-on : ubuntu-latest
14+ strategy :
15+ matrix :
16+ php-versions : ['5.6', '8.0']
17+ steps :
18+ - name : Checkout code
19+ uses : actions/checkout@v2
20+
21+ - name : Setup PHP
22+ uses : shivammathur/setup-php@v2
23+ with :
24+ php-version : ${{ matrix.php-versions }}
25+ extensions : mbstring, intl
26+ ini-values : post_max_size=256M, max_execution_time=180
27+ coverage : xdebug
28+
29+ - name : set phpenv var
30+ run : PHPENV_ROOT=/usr/local/bin/phpenv
31+
32+ - name : install phpenv
33+ run : curl -L https://raw.githubusercontent.com/phpenv/phpenv-installer/master/bin/phpenv-installer
34+
35+ - name : set phpenv
36+ run : export PATH="$HOME/.phpenv/bin:$PATH"
37+
38+ - name : Create .ini file
39+ run : echo "extension = zip.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
40+
41+ - name : Install dependencies
42+ run : |
43+ composer install --prefer-dist
44+ composer update
45+ composer dumpautoload
46+
47+ - name : script
48+ run : |
49+ vendor/bin/phpcs --ignore=functions.php --standard=PSR2 src/
50+ vendor/bin/phpunit -c phpunit.xml.dist -v --testsuite integration
You can’t perform that action at this time.
0 commit comments