File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313
1414 strategy :
1515 fail-fast : true
16- matrix :
17- php : ['8.1']
1816
1917 services :
2018 mariadb :
3634 ports :
3735 - 6379:6379
3836
39- name : PHP ${{ matrix.php }}
37+ name : PHP 8.1
4038
4139 steps :
4240 - name : Checkout
4543 - name : Setup PHP
4644 uses : shivammathur/setup-php@v2
4745 with :
48- php-version : ${{ matrix.php }}
46+ php-version : 8.1
4947 tools : composer
5048 coverage : xdebug
5149
6765
6866 - name : PHPStan
6967 run :
70- vendor/bin/phpstan analyse -vvv
68+ vendor/bin/phpstan analyse --xdebug - vvv
7169
7270 - name : PHPUnit
7371 env :
8482 cp build/coverage/clover.xml build/logs/clover.xml
8583 composer global require php-coveralls/php-coveralls
8684 php-coveralls --coverage_clover=build/logs/clover.xml -v
87- if : matrix.php == '8.1'
85+
86+ tests-last :
87+ runs-on : ubuntu-20.04
88+ timeout-minutes : 10
89+
90+ strategy :
91+ fail-fast : true
92+
93+ services :
94+ mariadb :
95+ image : mariadb
96+ env :
97+ MYSQL_DATABASE : framework-tests
98+ MYSQL_ROOT_PASSWORD : password
99+ ports :
100+ - 3306:3306
101+ options : --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
102+
103+ memcached :
104+ image : memcached
105+ ports :
106+ - 11211:11211
107+
108+ redis :
109+ image : redis
110+ ports :
111+ - 6379:6379
112+
113+ name : PHP 8.2 - Last
114+
115+ steps :
116+ - name : Checkout
117+ uses : actions/checkout@v2
118+
119+ - name : Setup PHP
120+ uses : shivammathur/setup-php@v2
121+ with :
122+ php-version : 8.1
123+ tools : composer
124+ coverage : xdebug
125+
126+ - name : Install dependencies
127+ run :
128+ composer update
129+
130+ - name : PHPUnit
131+ env :
132+ DB_HOST : 127.0.0.1
133+ MEMCACHED_HOST : 127.0.0.1
134+ REDIS_HOST : 127.0.0.1
135+ run : vendor/bin/phpunit --verbose
You can’t perform that action at this time.
0 commit comments