mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 17:33:45 +00:00
Do things differently
This commit is contained in:
@@ -30,6 +30,14 @@ SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|||||||
|
|
||||||
# Do static code analysis.
|
# Do static code analysis.
|
||||||
# ./vendor/bin/phpstan analyse -c .ci/phpstan.neon --no-progress
|
# ./vendor/bin/phpstan analyse -c .ci/phpstan.neon --no-progress
|
||||||
./vendor/bin/phpstan analyse -c .ci/phpstan.neon --error-format=table > phpstan-report.txt
|
./vendor/bin/phpstan analyse -c .ci/phpstan.neon --no-progress --error-format=table > phpstan-report.txt
|
||||||
|
EXIT_CODE=$?
|
||||||
|
|
||||||
echo 'The PHPstan report can be found in phpstan-report.txt'
|
if [ $GITHUB_ACTIONS -ne "true" ]; then
|
||||||
|
echo 'The PHPstan report can be found in phpstan-report.txt'
|
||||||
|
exit $EXIT_CODE
|
||||||
|
fi
|
||||||
|
|
||||||
|
cat phpstan-report.txt
|
||||||
|
|
||||||
|
exit $EXIT_CODE
|
||||||
|
Reference in New Issue
Block a user