From 1cbba3f9ce5fb3de8992a916286f545f3787e128 Mon Sep 17 00:00:00 2001
From: Bart Jaskulski <bjaskulski@protonmail.com>
Date: Wed, 27 Nov 2024 11:06:33 +0100
Subject: [PATCH] feat: upgrade mysql used in tests to 5.7

Signed-off-by: Bart Jaskulski <bjaskulski@protonmail.com>
---
 includes/deploy.yml                        | 2 +-
 includes/tests/codeception-integration.yml | 2 +-
 includes/tests/codeception-parallel.yml    | 6 +++---
 includes/tests/codeception.yml             | 2 +-
 includes/tests/integration.yml             | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/includes/deploy.yml b/includes/deploy.yml
index d9a0c13..6feb289 100644
--- a/includes/deploy.yml
+++ b/includes/deploy.yml
@@ -202,7 +202,7 @@ deploy to repository:
       - $IS_NPM_LIBRARY
 
 update wpdesk plugins database:
-  image: mysql:5.6
+  image: mysql:5.7
   stage: post-deploy
   tags:
     - deploy
diff --git a/includes/tests/codeception-integration.yml b/includes/tests/codeception-integration.yml
index 413212b..c80cad6 100644
--- a/includes/tests/codeception-integration.yml
+++ b/includes/tests/codeception-integration.yml
@@ -11,7 +11,7 @@ integration codeception tests:
     WP_CLI_CACHE_DIR: /cache/wp-cli
     APACHE_DOCUMENT_ROOT: ${CI_PROJECT_DIR}/tests/wordpress
   services:
-    - name: mysql:5.6
+    - name: mysql:5.7
       alias: mysqltests
       command: [--max-allowed-packet=67108864]
   needs:
diff --git a/includes/tests/codeception-parallel.yml b/includes/tests/codeception-parallel.yml
index 14bcfe0..dc6c81d 100644
--- a/includes/tests/codeception-parallel.yml
+++ b/includes/tests/codeception-parallel.yml
@@ -21,7 +21,7 @@ prepare codeception parallel:
     SCREEN_WIDTH: 1200
     SCREEN_HEIGHT: 1200
   services:
-    - name: mysql:5.6
+    - name: mysql:5.7
       alias: mysqltests
       command: [--max-allowed-packet=67108864]
     - name: wpdesknet/wordpress:52
@@ -85,7 +85,7 @@ prepare codeception parallel:
   parallel: 4
   retry: 2
   services:
-    - name: mysql:5.6
+    - name: mysql:5.7
       alias: mysqltests
       command: [--max-allowed-packet=67108864]
     - name: wpdesknet/wordpress:52
@@ -154,7 +154,7 @@ prepare codeception parallel:
 .template: &job-codeception-coverage
   <<: *job-codeception-test-parallel-manual
   services:
-    - name: mysql:5.6
+    - name: mysql:5.7
       alias: mysqltests
     - name: wpdesknet/wordpress:52
       alias: wootests
diff --git a/includes/tests/codeception.yml b/includes/tests/codeception.yml
index aca0e88..75b8c37 100644
--- a/includes/tests/codeception.yml
+++ b/includes/tests/codeception.yml
@@ -12,7 +12,7 @@
     SCREEN_HEIGHT: 1200
     DEPENDENT_PLUGINS_DIR: ${CI_PROJECT_DIR}/tests/dependent_plugins
   services:
-    - name: mysql:5.6
+    - name: mysql:5.7
       alias: mysqltests
       command: [--max-allowed-packet=67108864]
     - name: wpdesknet/wordpress:52
diff --git a/includes/tests/integration.yml b/includes/tests/integration.yml
index 8961f30..602e20a 100644
--- a/includes/tests/integration.yml
+++ b/includes/tests/integration.yml
@@ -13,7 +13,7 @@
     - job: prepare tests
       optional: true
   services:
-    - mysql:5.6
+    - mysql:5.7
   before_script:
     - export DEPENDENT_PLUGINS_DIR=${CI_PROJECT_DIR}/tests/dependent_plugins
     - echo ${WPDESK_CI_VERSION}
-- 
GitLab