diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b5300d2..7c90b1c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,16 +6,16 @@ jobs: ci: runs-on: ubuntu-latest - # services: - # mysql: - # image: mysql:8.0 - # env: - # MYSQL_ALLOW_EMPTY_PASSWORD: true - # MYSQL_ROOT_PASSWORD: root - # MYSQL_DATABASE: test - # ports: - # - 3306 - # options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 + services: + mysql: + image: mysql:8.0 + env: + MYSQL_ALLOW_EMPTY_PASSWORD: true + MYSQL_ROOT_PASSWORD: root + MYSQL_DATABASE: test + ports: + - 33306:3306 + options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 steps: - uses: actions/checkout@v3 diff --git a/script/ci-github.sh b/script/ci-github.sh index 24a4406..d8ffd99 100755 --- a/script/ci-github.sh +++ b/script/ci-github.sh @@ -12,7 +12,7 @@ echo "${create_t1}" | schemadiff load > $output_file grep -q 'CREATE TABLE' $output_file -alias my='mysql -uroot -p"" --host 127.0.0.1 --port 3306' +alias my='mysql -uroot -proot --host 127.0.0.1 --port 33306' my -e "create database if not exists test" echo "${create_t1}" | my test