Fix script and job

This commit is contained in:
James Cole 2023-11-04 11:41:21 +01:00
parent 4db6933c17
commit b77b3e3fc8
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80
2 changed files with 3 additions and 4 deletions

View File

@ -33,7 +33,8 @@ SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
./vendor/bin/phpstan analyse -c .ci/phpstan.neon --no-progress --error-format=table > phpstan-report.txt
EXIT_CODE=$?
if [ $GITHUB_ACTIONS -ne "true" ]; then
if [[ $GITHUB_ACTIONS = "" ]]
then
echo 'The PHPstan report can be found in phpstan-report.txt'
exit $EXIT_CODE
fi

View File

@ -49,9 +49,7 @@ jobs:
run: composer install --prefer-dist --no-interaction --no-progress --no-scripts
- name: PHPStan
uses: php-actions/phpstan@v3
with:
configuration: .ci/phpstan.neon
run: .ci/phpstan.sh
- name: "Create database file"
run: touch storage/database/database.sqlite