]> git.mxchange.org Git - friendica.git/commitdiff
Fix command, move it to top
authorArt4 <art4@wlabs.de>
Sat, 16 Nov 2024 09:17:07 +0000 (09:17 +0000)
committerArt4 <art4@wlabs.de>
Sat, 16 Nov 2024 09:17:07 +0000 (09:17 +0000)
.woodpecker/.phpunit.yml

index 0a748821ffc726536ec89dddfc802c3ecf28cd33..22502376a60481787d90f21240028fb075fa6e6f 100644 (file)
@@ -67,6 +67,9 @@ steps:
       MEMCACHED_HOST: "memcached"
       MEMCACHE_HOST: "memcached"
     commands:
+      - if [ "${PHP_MAJOR_VERSION}" = "8.2" ]; then
+          bin/composer.phar run phpstan;
+        fi
       - 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
       - mysql -h$MYSQL_HOST -P$MYSQL_PORT -p$MYSQL_PASSWORD -u$MYSQL_USER $MYSQL_DATABASE < database.sql
@@ -77,9 +80,6 @@ steps:
         else
           phpunit --configuration tests/phpunit.xml -d memory_limit=-1;
         fi
-      - if [ "${PHP_MAJOR_VERSION}" = "8.2" ]; then
-          bin/composer.phar run phpstan
-        fi
   codecov:
     image: friendicaci/codecov
     when: