Skip to content

Commit 90bd7b1

Browse files
committed
Fix mysql setup in GA CI
1 parent da0c820 commit 90bd7b1

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Diff for: .github/workflows/ci.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,11 @@ jobs:
2424

2525
steps:
2626

27-
- name: Setup MySQL latest
28-
if: matrix.db-type == 'mysql' && matrix.php-version != '7.4'
29-
run: docker run --rm --name=mysqld -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=cakephp -p 3306:3306 -d mysql --default-authentication-plugin=mysql_native_password --disable-log-bin
30-
31-
- name: Setup MySQL 5.6
32-
if: matrix.db-type == 'mysql' && matrix.php-version == '7.4'
33-
run: docker run --rm --name=mysqld -e MYSQL_ROOT_PASSWORD=root -e MYSQL_DATABASE=cakephp -p 3306:3306 -d mysql:5.6 --character-set-server=utf8
27+
- name: Setup MySQL
28+
if: matrix.db-type == 'mysql'
29+
run: |
30+
sudo service mysql start
31+
mysql -h 127.0.0.1 -u root -proot -e 'CREATE DATABASE cakephp;'
3432
3533
- uses: actions/checkout@v3
3634

0 commit comments

Comments
 (0)