From 9bf148cd399d854ae363aff5adf136a502261f50 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Mon, 18 Nov 2024 13:33:47 +1300 Subject: [PATCH] ENH Add MySQL 8.4 --- .github/workflows/ci.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8fb4911..778d963 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -153,6 +153,15 @@ jobs: ports: - 3380:3306 options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=10 + mysql84: + image: mysql:8.4 + env: + MYSQL_HOST: 127.0.0.1 + MYSQL_ROOT_PASSWORD: root + MYSQL_DATABASE: SS_mysite + ports: + - 3384:3306 + options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=10 postgres: image: postgres env: @@ -783,7 +792,12 @@ jobs: SS_DATABASE_PORT="3357" EOF else - MYSQL_PORT=${{ matrix.db == 'mysql57' && '3357' || '3380' }} + MYSQL_PORT=3357 + if [[ "${{ matrix.db }}" == "mysql80" ]]; then + MYSQL_PORT=3380 + elif [[ "${{ matrix.db }}" == "mysql84" ]]; then + MYSQL_PORT=3384 + fi echo "mysql version": mysql --host=127.0.0.1 --user=root --password=root --port=$MYSQL_PORT --execute="SELECT VERSION();" || true cat << EOF > .env