Skip to content

Commit

Permalink
[TASK] Run PHPStan analysis within CI
Browse files Browse the repository at this point in the history
Fixes: #3632
  • Loading branch information
dkd-kaehm committed May 26, 2023
1 parent 6ce39ef commit ea7f0bc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,6 @@ jobs:
${{ env.CI_BUILD_DIRECTORY }}/bin
${{ env.CI_BUILD_DIRECTORY }}/vendor
${{ env.COMPOSER_GLOBAL_REQUEREMENTS }}
composer.json
composer.lock
key: ${{ env.CI_BUILD_CACHE_KEY }}
-
name: CI-Bootstrap
Expand Down
9 changes: 9 additions & 0 deletions Build/Test/cibuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,15 @@ else
fi
fi

echo -e "\n\n"
echo "Run PHPStan analysis"
if ! composer tests:phpstan
then
EXIT_CODE=7
echo "Error during running the PHPStan analysis, please check and fix them."
echo "Tip for working on them: "
echo " TYPO3_VERSION="${TYPO3_VERSION}" composer tests:setup && composer tests:phpstan"
fi

echo -e "\n\n"
echo "Run unit tests"
Expand Down

0 comments on commit ea7f0bc

Please sign in to comment.