mirror of
https://github.com/friendica/friendica
synced 2025-01-03 14:42:18 +00:00
Move phpstan into own workflow step
This commit is contained in:
parent
f75fc9a2fb
commit
6e17b3b76e
1 changed files with 7 additions and 3 deletions
|
@ -55,6 +55,13 @@ steps:
|
||||||
- '.composer'
|
- '.composer'
|
||||||
volumes:
|
volumes:
|
||||||
- /tmp/drone-cache:/tmp/cache
|
- /tmp/drone-cache:/tmp/cache
|
||||||
|
phpstan:
|
||||||
|
image: friendicaci/php${PHP_MAJOR_VERSION}:php${PHP_VERSION}
|
||||||
|
when:
|
||||||
|
matrix:
|
||||||
|
PHP_MAJOR_VERSION: 8.2
|
||||||
|
commands:
|
||||||
|
- bin/composer.phar run phpstan;
|
||||||
test:
|
test:
|
||||||
image: friendicaci/php${PHP_MAJOR_VERSION}:php${PHP_VERSION}
|
image: friendicaci/php${PHP_MAJOR_VERSION}:php${PHP_VERSION}
|
||||||
environment:
|
environment:
|
||||||
|
@ -67,9 +74,6 @@ steps:
|
||||||
MEMCACHED_HOST: "memcached"
|
MEMCACHED_HOST: "memcached"
|
||||||
MEMCACHE_HOST: "memcached"
|
MEMCACHE_HOST: "memcached"
|
||||||
commands:
|
commands:
|
||||||
- if [ "${PHP_MAJOR_VERSION}" = "8.2" ]; then
|
|
||||||
bin/composer.phar run phpstan;
|
|
||||||
fi
|
|
||||||
- cp config/local-sample.config.php config/local.config.php
|
- cp config/local-sample.config.php config/local.config.php
|
||||||
- if ! bin/wait-for-connection $MYSQL_HOST $MYSQL_PORT 300; then echo "[ERROR] Waited 300 seconds, no response" >&2; exit 1; fi
|
- if ! bin/wait-for-connection $MYSQL_HOST $MYSQL_PORT 300; then echo "[ERROR] Waited 300 seconds, no response" >&2; exit 1; fi
|
||||||
- mysql -h$MYSQL_HOST -P$MYSQL_PORT -p$MYSQL_PASSWORD -u$MYSQL_USER $MYSQL_DATABASE < database.sql
|
- mysql -h$MYSQL_HOST -P$MYSQL_PORT -p$MYSQL_PASSWORD -u$MYSQL_USER $MYSQL_DATABASE < database.sql
|
||||||
|
|
Loading…
Reference in a new issue