mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-29 18:20:01 +00:00
Fix script and job
This commit is contained in:
@@ -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
|
./vendor/bin/phpstan analyse -c .ci/phpstan.neon --no-progress --error-format=table > phpstan-report.txt
|
||||||
EXIT_CODE=$?
|
EXIT_CODE=$?
|
||||||
|
|
||||||
if [ $GITHUB_ACTIONS -ne "true" ]; then
|
if [[ $GITHUB_ACTIONS = "" ]]
|
||||||
|
then
|
||||||
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
|
exit $EXIT_CODE
|
||||||
fi
|
fi
|
||||||
|
4
.github/workflows/sonarcloud.yml
vendored
4
.github/workflows/sonarcloud.yml
vendored
@@ -49,9 +49,7 @@ jobs:
|
|||||||
run: composer install --prefer-dist --no-interaction --no-progress --no-scripts
|
run: composer install --prefer-dist --no-interaction --no-progress --no-scripts
|
||||||
|
|
||||||
- name: PHPStan
|
- name: PHPStan
|
||||||
uses: php-actions/phpstan@v3
|
run: .ci/phpstan.sh
|
||||||
with:
|
|
||||||
configuration: .ci/phpstan.neon
|
|
||||||
|
|
||||||
- name: "Create database file"
|
- name: "Create database file"
|
||||||
run: touch storage/database/database.sqlite
|
run: touch storage/database/database.sqlite
|
||||||
|
Reference in New Issue
Block a user