From d71483e484709a18c2ab6309a7777ff57e282516 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Thu, 13 Feb 2025 23:32:20 +0300 Subject: [PATCH 1/8] release version 2.0.52 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index cd28475d9..2eaeeefb6 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "irc": "ircs://irc.libera.chat:6697/yii", "source": "https://github.com/yiisoft/yii2" }, - "minimum-stability": "dev", + "minimum-stability": "stable", "require": { "php": ">=7.4.0", "yiisoft/yii2": "~2.0.45", From ca4452e461e696ccabd463acbe1f329275e62fe2 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Thu, 13 Feb 2025 23:32:33 +0300 Subject: [PATCH 2/8] prepare for next release --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 2eaeeefb6..cd28475d9 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "irc": "ircs://irc.libera.chat:6697/yii", "source": "https://github.com/yiisoft/yii2" }, - "minimum-stability": "stable", + "minimum-stability": "dev", "require": { "php": ">=7.4.0", "yiisoft/yii2": "~2.0.45", From bb508eebbb609bf37a36a93030cd8e233611380a Mon Sep 17 00:00:00 2001 From: Fejan <63099555+fejan-malek@users.noreply.github.com> Date: Sun, 8 Jun 2025 18:55:38 +0530 Subject: [PATCH 3/8] Change verify email action (#568) Co-authored-by: Fejan Groovy --- .github/workflows/build.yml | 2 +- frontend/controllers/SiteController.php | 2 +- frontend/tests/functional/VerifyEmailCest.php | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1047d5003..68effbc94 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -91,5 +91,5 @@ jobs: - name: Apply migration run: php yii_test migrate --interactive=0 - - name: Run tests with codeception + - name: Run tests with codeception run: vendor/bin/codecept run diff --git a/frontend/controllers/SiteController.php b/frontend/controllers/SiteController.php index 6de678a1e..dacf32977 100644 --- a/frontend/controllers/SiteController.php +++ b/frontend/controllers/SiteController.php @@ -227,7 +227,7 @@ public function actionVerifyEmail($token) } catch (InvalidArgumentException $e) { throw new BadRequestHttpException($e->getMessage()); } - if (($user = $model->verifyEmail()) && Yii::$app->user->login($user)) { + if ($model->verifyEmail()) { Yii::$app->session->setFlash('success', 'Your email has been confirmed!'); return $this->goHome(); } diff --git a/frontend/tests/functional/VerifyEmailCest.php b/frontend/tests/functional/VerifyEmailCest.php index b227426e7..1e457babe 100644 --- a/frontend/tests/functional/VerifyEmailCest.php +++ b/frontend/tests/functional/VerifyEmailCest.php @@ -3,6 +3,7 @@ namespace frontend\tests\functional; use common\fixtures\UserFixture; +use common\models\User; use frontend\tests\FunctionalTester; class VerifyEmailCest @@ -57,12 +58,11 @@ public function checkSuccessVerification(FunctionalTester $I) $I->amOnRoute('site/verify-email', ['token' => '4ch0qbfhvWwkcuWqjN8SWRq72SOw1KYT_1548675330']); $I->canSee('Your email has been confirmed!'); $I->canSee('Congratulations!', 'h1'); - $I->see('Logout (test.test)', 'form button[type=submit]'); - + $I->dontSee('Logout (test.test)', 'form button[type=submit]'); $I->seeRecord('common\models\User', [ - 'username' => 'test.test', - 'email' => 'test@mail.com', - 'status' => \common\models\User::STATUS_ACTIVE + 'username' => 'test.test', + 'email' => 'test@mail.com', + 'status' => User::STATUS_ACTIVE ]); } } From d71d33d96cd4f6f6b819a20af86b4e974569bbea Mon Sep 17 00:00:00 2001 From: Fejan <63099555+fejan-malek@users.noreply.github.com> Date: Sun, 8 Jun 2025 18:56:12 +0530 Subject: [PATCH 4/8] Fix actions (#569) Co-authored-by: Fejan Groovy Co-authored-by: Alexander Makarov --- .github/workflows/build.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 68effbc94..0f43a97e7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,6 +23,9 @@ jobs: - "7.4" - "8.0" - "8.1" + - "8.2" + - "8.3" + - "8.4" mysql: - "5.7" @@ -50,7 +53,7 @@ jobs: key: ${{ env.key }} - name: Cache extensions - uses: actions/cache@v1 + uses: actions/cache@v4 with: path: ${{ steps.cache-env.outputs.dir }} key: ${{ steps.cache-env.outputs.key }} @@ -69,7 +72,7 @@ jobs: run: echo "COMPOSER_CACHE_DIR=$(composer config cache-dir)" >> $GITHUB_ENV - name: Cache dependencies installed with composer - uses: actions/cache@v1 + uses: actions/cache@v4 with: path: ${{ env.COMPOSER_CACHE_DIR }} key: php${{ matrix.php }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.json') }} From 328e1b8f16789716e903d45d02337e1291cc4ca5 Mon Sep 17 00:00:00 2001 From: Fejan <63099555+fejan-malek@users.noreply.github.com> Date: Sun, 8 Jun 2025 18:56:55 +0530 Subject: [PATCH 5/8] Update MySQL service version in CI workflow and adjust test command formatting (#567) Co-authored-by: Fejan Groovy --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0f43a97e7..c8fb2d669 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -29,6 +29,7 @@ jobs: mysql: - "5.7" + - "latest" services: mysql: From 935cf77e65c235bb8c33a5f53fbb02476d42cc36 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Fri, 27 Jun 2025 11:02:51 +0300 Subject: [PATCH 6/8] release version 2.0.53 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index cd28475d9..2eaeeefb6 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "irc": "ircs://irc.libera.chat:6697/yii", "source": "https://github.com/yiisoft/yii2" }, - "minimum-stability": "dev", + "minimum-stability": "stable", "require": { "php": ">=7.4.0", "yiisoft/yii2": "~2.0.45", From 6222f867a12077e521fc83844aafd1c41d88c7ba Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Fri, 27 Jun 2025 11:03:16 +0300 Subject: [PATCH 7/8] prepare for next release --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 2eaeeefb6..cd28475d9 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "irc": "ircs://irc.libera.chat:6697/yii", "source": "https://github.com/yiisoft/yii2" }, - "minimum-stability": "stable", + "minimum-stability": "dev", "require": { "php": ">=7.4.0", "yiisoft/yii2": "~2.0.45", From 6b088c9fd26eb31b0ab70f46e028fe9e3356f1f2 Mon Sep 17 00:00:00 2001 From: Fejan <63099555+fejan-malek@users.noreply.github.com> Date: Wed, 13 Aug 2025 18:56:01 +0530 Subject: [PATCH 8/8] Change: updated checkout version in GH from v2 to v5 (#570) Co-authored-by: Fejan Groovy --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c8fb2d669..97dda9162 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -43,7 +43,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v5 - name: Setup cache environment id: cache-env