From a37816fc1a45adfc1713ab822e25b4ca4b2e7ff6 Mon Sep 17 00:00:00 2001 From: jonghun Date: Sat, 6 Jul 2024 07:44:26 +0900 Subject: [PATCH] =?UTF-8?q?#4=20test:=20ci=20=EC=8A=A4=ED=81=AC=EB=A6=BD?= =?UTF-8?q?=ED=8A=B8=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/develop-ci.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/develop-ci.yml b/.github/workflows/develop-ci.yml index d3571db..dbb2f90 100644 --- a/.github/workflows/develop-ci.yml +++ b/.github/workflows/develop-ci.yml @@ -40,11 +40,14 @@ jobs: ${{ runner.os }}-gradle- - name: MySQL 설치 - uses: mirromutth/mysql-action@v1 + uses: mirromutth/mysql-action@v1.1 with: + host port: 3306 + container port: 3306 + character set server: 'utf8' # Optional, default value is 'utf8mb4'. The '--character-set-server' option for mysqld mysql version: '8.0' # Optional, default value is "latest". The version of the MySQL mysql database: market_db # Optional, default value is "test". The specified database which will be create - mysql user: root # Required if "mysql root password" is empty, default is empty. The superuser for the specified database. Of course you can use secrets, too + mysql user: actions # 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: ${{ secrets.DB_PASSWORD }} # - name: MySQL 설치 @@ -79,10 +82,16 @@ jobs: - name: Run chmod to make gradlew executable run: chmod +x ./gradlew - - name: 어플리케이션 실행 테스트(테스트 코드X) - run: ./gradlew clean build --exclude-task test + - name: 빌드 진행 +# run: ./gradlew clean build --exclude-task test + run: ./gradlew build -x test + + - name: Wait for MySQL + run: | + while ! mysqladmin ping --host=127.0.0.1 --password=$DB_PASSWORD --silent; do + sleep 1 + done - # build Test - name: 테스트 코드 실행 run: ./gradlew --info test