diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ac070d9..e950cfa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,10 +14,11 @@ jobs: mysql: image: mysql:8.0.21 ports: - - 3306 + - 3306:3306 env: - MYSQL_ALLOW_EMPTY_PASSWORD: true + MYSQL_ALLOW_EMPTY_PASSWORD: "true" MYSQL_ROOT_PASSWORD: "" + options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3 steps: - uses: actions/checkout@v2 diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..682dddf --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,10 @@ +version: "3.2" + +services: + mysql: + image: mysql:8.0.21 + ports: + - 3306:3306 + environment: + MYSQL_ALLOW_EMPTY_PASSWORD: "true" + MYSQL_ROOT_PASSWORD: "" \ No newline at end of file