diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index aa01fbfe90af90d9a3edec07dc7e0ee583e5c973..ef4c9766dfc46de66fa61e4f83f12721fab3b1d6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -41,6 +41,11 @@ before_script: - php composer.phar install --prefer-dist --no-ansi --no-interaction --no-progress --ignore-platform-reqs - npm install +commit-message: + stage: init + script: + - npx commitlint CI_COMMIT_MESSAGE + tests: stage: quality script: @@ -55,6 +60,9 @@ code-review: bundle_app: stage: bundle script: + # delete installed git hooks because captainhooks (dev dependency) will be removed + - rm -rf ./.git/hooks + # remove dev dependencies using the --no-dev option - php composer.phar install --no-dev --prefer-dist --no-ansi --no-interaction --no-progress --ignore-platform-reqs @@ -91,9 +99,6 @@ release_app: # IMPORTANT: delete local git tags before release to prevent eventual script failure (ie. tag already exists) - git tag | xargs git tag -d - # IMPORTANT: no need to run git hooks, just remove them - - rm -rf ./.git/hooks - # run semantic-release script (configured in `.releaserc.json` file) - npm run release only: diff --git a/app/Controllers/HomeController.php b/app/Controllers/HomeController.php index 251f7eb3e547806938b826ca316f88daef7288e6..f59a5b7fb90c7856bcd76a1d5ca4f505ba6519d5 100644 --- a/app/Controllers/HomeController.php +++ b/app/Controllers/HomeController.php @@ -13,7 +13,7 @@ use App\Models\PodcastModel; class HomeController extends BaseController { /** - * @return mixed + * @return RedirectResponse|string */ public function index() {