From 02606d97537e5aa52b7bbf625f0bc6009ad0a122 Mon Sep 17 00:00:00 2001 From: YuJin Cho Date: Thu, 12 Sep 2024 23:31:51 +0900 Subject: [PATCH] =?UTF-8?q?mysql=20=EC=84=A4=EC=A0=95=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ".github/workflows/\bci.yml" | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git "a/.github/workflows/\bci.yml" "b/.github/workflows/\bci.yml" index 3a869d5a..772ea6ba 100644 --- "a/.github/workflows/\bci.yml" +++ "b/.github/workflows/\bci.yml" @@ -14,22 +14,6 @@ jobs: runs-on: ubuntu-latest - services: - mysql: - image: mysql:8.0.30 - env: - MYSQL_ROOT_PASSWORD: root! - MYSQL_DATABASE: testdb - MYSQL_USER: admin - MYSQL_PASSWORD: admin! - ports: - - 3306:3306 - options: >- - --health-cmd="mysqladmin ping" - --health-interval=10s - --health-timeout=5s - --health-retries=3 - steps: - uses: actions/checkout@v4 @@ -39,6 +23,18 @@ jobs: java-version: '11' distribution: 'temurin' + - uses: samin/mysql-action@v1 + with: + host port: 3306 # Optional, default value is 3306. The port of host + container port: 3306 # Optional, default value is 3306. The port of container + character set server: 'utf8' # Optional, default value is 'utf8mb4'. The '--character-set-server' option for mysqld + collation server: 'utf8_general_ci' # Optional, default value is 'utf8mb4_general_ci'. The '--collation-server' option for mysqld + mysql version: '8.0' # Optional, default value is "latest". The version of the MySQL + mysql database: 'testdb' # Optional, default value is "test". The specified database which will be create + mysql root password: 'root!' # Required if "mysql user" is empty, default is empty. The root superuser password + mysql user: 'admin' # Required if "mysql root password" is empty, default is empty. The superuser for the specified database. Of course you can use secrets, too + mysql password: 'admin!' # Required if "mysql user" exists. The password for the "mysql user" + # Configure Gradle for optimal use in GitHub Actions, including caching of downloaded dependencies. # See: https://github.com/gradle/actions/blob/main/setup-gradle/README.md - name: Setup Gradle