mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Check for github
This commit is contained in:
parent
94b0028254
commit
08c07352ae
@ -29,16 +29,17 @@ SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|||||||
# cp .ci/.env.ci .env
|
# cp .ci/.env.ci .env
|
||||||
|
|
||||||
# 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 --error-format=table > phpstan-report.txt
|
|
||||||
EXIT_CODE=$?
|
|
||||||
|
|
||||||
if [[ $GITHUB_ACTIONS = "" ]]
|
if [[ $GITHUB_ACTIONS = "" ]]
|
||||||
then
|
then
|
||||||
|
./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'
|
echo 'The PHPstan report can be found in phpstan-report.txt'
|
||||||
exit $EXIT_CODE
|
|
||||||
|
if [[ $GITHUB_ACTIONS = "true" ]]
|
||||||
|
then
|
||||||
|
./vendor/bin/phpstan analyse -c .ci/phpstan.neon --no-progress --error-format=github > phpstan-report.txt
|
||||||
|
EXIT_CODE=$?
|
||||||
|
cat phpstan-report.txt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat phpstan-report.txt
|
|
||||||
|
|
||||||
exit $EXIT_CODE
|
exit $EXIT_CODE
|
||||||
|
Loading…
Reference in New Issue
Block a user