Skip to content

Commit 9991d12

Browse files
committed
Try using bitnami mysql service image instead
1 parent 3dda3ce commit 9991d12

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/testing.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,12 @@ jobs:
103103

104104
services:
105105
mysql:
106-
image: mysql:${{ matrix.mysql }}
106+
image: bitnami/mysql:${{ matrix.mysql }}
107107
env:
108108
MYSQL_DATABASE: wp_cli_test
109109
MYSQL_USER: root
110110
MYSQL_ROOT_PASSWORD: root
111+
MYSQL_AUTHENTICATION_PLUGIN: mysql_native_password
111112
ports:
112113
- 3306
113114
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
@@ -150,10 +151,6 @@ jobs:
150151
if: steps.check_files.outputs.files_exists == 'true'
151152
run: COMPOSER_ROOT_VERSION=dev-master composer install --prefer-dist --no-progress --no-suggest
152153

153-
- name: Configure MySQL server
154-
if: steps.check_files.outputs.files_exists == 'true'
155-
run: echo -e '[mysqld]\ndefault-authentication-plugin=mysql_native_password' > "$HOME/.my.cnf"
156-
157154
- name: Start MySQL server
158155
if: steps.check_files.outputs.files_exists == 'true'
159156
run: sudo systemctl start mysql

0 commit comments

Comments
 (0)