From 598ee04447310b368a241c4d176359324d661658 Mon Sep 17 00:00:00 2001 From: Umer Salman Date: Fri, 1 Nov 2024 09:39:38 -0500 Subject: [PATCH 1/3] Fix CakePHP 5.1 Cache config name deprecation in tests/bootstrap.php --- tests/bootstrap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 2d7e543cb..c3b8f2d00 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -75,9 +75,9 @@ 'default' => [ 'engine' => 'File', ], - '_cake_core_' => [ + '_cake_translations_' => [ 'className' => 'File', - 'prefix' => 'users_myapp_cake_core_', + 'prefix' => 'users_myapp_cake_translations_', 'path' => CACHE . 'persistent/', 'serialize' => true, 'duration' => '+10 seconds', From 67a1f46ff701e8b0e941429a78af42247b9235bb Mon Sep 17 00:00:00 2001 From: Umer Salman Date: Fri, 1 Nov 2024 09:52:27 -0500 Subject: [PATCH 2/3] tests/bootstrap.php initializes the plugin twice Don't see why this is necessary unless it's to clear the options? If so, it should be handled differently. --- tests/bootstrap.php | 1 - 1 file changed, 1 deletion(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index c3b8f2d00..796217c18 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -136,7 +136,6 @@ class_alias('TestApp\Controller\AppController', 'App\Controller\AppController'); ]); \Cake\Utility\Security::setSalt('yoyz186elmi66ab9pz4imbb3tgy9vnsgsfgwe2r8tyxbbfdygu9e09tlxyg8p7dq'); -Plugin::getCollection()->add(new \CakeDC\Users\Plugin()); session_id('cli'); \Cake\Core\Configure::write('Users.AllowedRedirectHosts', [ From 13a3ec70ade156342a6c4abdd6e46fbf95053755 Mon Sep 17 00:00:00 2001 From: Umer Salman Date: Fri, 1 Nov 2024 09:56:39 -0500 Subject: [PATCH 3/3] Fix set-output deprecation in ci.yml See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ for deprecation details --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 114d93e3d..d3918ff34 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,12 +38,12 @@ jobs: - name: Get composer cache directory id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" + run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Get date part for cache key id: key-date - run: echo "::set-output name=date::$(date +'%Y-%m')" - + run: echo "date=$(date +'%Y-%m')" >> $GITHUB_OUTPUT + - name: Cache composer dependencies uses: actions/cache@v1 with: