Do things differently

This commit is contained in:
James Cole 2023-11-04 11:38:48 +01:00
parent 88160df2e8
commit 4db6933c17
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -30,6 +30,14 @@ SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
# Do static code analysis.
# ./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