From b6bafd8db977d97c3fd039c9d95a9467ef02caa6 Mon Sep 17 00:00:00 2001 From: "yoshitomo.yasuno" Date: Tue, 18 Apr 2023 11:46:27 +0900 Subject: [PATCH] Check mysql healthy in CI --- .github/workflows/rspec.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/rspec.yml b/.github/workflows/rspec.yml index 71c18c8..d2fce9b 100644 --- a/.github/workflows/rspec.yml +++ b/.github/workflows/rspec.yml @@ -10,6 +10,10 @@ jobs: - 3306:3306 env: MYSQL_ALLOW_EMPTY_PASSWORD: yes + options: >- + --health-cmd "mysqladmin ping" + --health-interval 5s + --health-timeout 3s strategy: fail-fast: true matrix: