Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
bada2c29df
1 changed files with 16 additions and 4 deletions
20
.github/workflows/phpstan.yml
vendored
20
.github/workflows/phpstan.yml
vendored
|
|
@ -89,16 +89,28 @@ jobs:
|
|||
# Run PHPStan
|
||||
- name: Run PHPStan
|
||||
id: phpstan
|
||||
if: "! cancelled() && steps.changed-php.outputs.any_changed == 'true'"
|
||||
# Proceed when:
|
||||
# - the action is not cancelled
|
||||
# AND
|
||||
# - the branch is an integration branch (no merge), or,
|
||||
# - the merge from branch contains 'phpstan_full', or,
|
||||
# - there are changes in PHP files.
|
||||
if: ${{ ! cancelled() && (github.ref_name == 'develop' || github.ref_name == 'refs/heads/develop' || endsWith(github.ref_name, '.0') || contains(github.head_ref, 'phpstan_full') || steps.changed-php.outputs.any_changed == 'true') }}
|
||||
env:
|
||||
ALL_CHANGED_FILES: ${{ steps.changed-php.outputs.all_changed_files }}
|
||||
# shellcheck disable=2086
|
||||
run: |
|
||||
# shellcheck disable=2086
|
||||
> /tmp/phpstan-files.txt
|
||||
echo "$ALL_CHANGED_FILES" >> /tmp/phpstan-files.txt
|
||||
cat /tmp/phpstan-files.txt
|
||||
phpstan -vvv analyse --error-format=checkstyle --memory-limit 7G -a dev/build/phpstan/bootstrap_action.php ${ALL_CHANGED_FILES} | tee _stan.xml | cs2pr --graceful-warnings
|
||||
if [ "${{ github.ref_name }}" == "develop" ] || [[ "${{ github.ref_name }}" == *.0 ]]|| [[ "${{ github.head_ref }}" == *"phpstan_full"* ]] ; then
|
||||
# Run on all files in integration branch
|
||||
phpstan -vvv analyse --error-format=checkstyle --memory-limit 7G -a dev/build/phpstan/bootstrap_action.php | tee _stan.xml | cs2pr --graceful-warnings
|
||||
|
||||
else
|
||||
echo "$ALL_CHANGED_FILES" >> /tmp/phpstan-files.txt
|
||||
cat /tmp/phpstan-files.txt
|
||||
phpstan -vvv analyse --error-format=checkstyle --memory-limit 7G -a dev/build/phpstan/bootstrap_action.php ${ALL_CHANGED_FILES} | tee _stan.xml | cs2pr --graceful-warnings
|
||||
fi
|
||||
# continue-on-error: true
|
||||
|
||||
# Save cache
|
||||
|
|
|
|||
Loading…
Reference in a new issue