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 d56cafa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,9 @@ 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
if: steps.restore_ci_build_caches.outputs.cache-hit != 'true'
run: |
./Build/Test/bootstrap.sh --skip-solr-install
echo "Current Size of EXT:Solr build Artefacts before run: " \
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 d56cafa

Please sign in to comment.