diff --git a/.github/workflows/ci-mysql.yml b/.github/workflows/ci-mysql.yml index 1b4e8ca4..b88e39ac 100644 --- a/.github/workflows/ci-mysql.yml +++ b/.github/workflows/ci-mysql.yml @@ -43,6 +43,9 @@ jobs: options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 steps: + - name: Show databases for root user + run: mysql --protocol=tcp -h localhost -P 13306 -u root -proot -e "ALTER DATABASE spiral CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;" + - name: Checkout uses: actions/checkout@v2 diff --git a/tests/docker-compose.yml b/tests/docker-compose.yml index 8cb062a9..a0ca57a3 100644 --- a/tests/docker-compose.yml +++ b/tests/docker-compose.yml @@ -11,20 +11,21 @@ services: cycle-mysql_latest: image: mysql:8.0.37 - restart: always - command: --default-authentication-plugin=mysql_native_password + restart: on-failure + command: | + --default-authentication-plugin=mysql_native_password + --character-set-server=utf8mb4 + --collation-server=utf8mb4_unicode_ci ports: - "13306:3306" environment: MYSQL_DATABASE: "spiral" MYSQL_ROOT_PASSWORD: "root" MYSQL_ROOT_HOST: "%" - MYSQL_CHARSET: "utf8mb4" - MYSQL_COLLATION: "utf8mb4_unicode_ci" cycle-postgres: image: postgres:15.2 - restart: always + restart: on-failure ports: - "15432:5432" environment: