Navigation Menu

Skip to content

Commit

Permalink
Add health check for mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeSouthan committed Mar 10, 2023
1 parent 4710f6e commit dc1619b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/tests.yml
Expand Up @@ -86,6 +86,11 @@ jobs:
MYSQL_DATABASE: statesman_test
ports:
- "3306:3306"
options: >-
--health-cmd "mysqladmin ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
DATABASE_URL: mysql2://foobar:password@127.0.0.1/statesman_test
DATABASE_DEPENDENCY_PORT: "3306"
Expand Down

0 comments on commit dc1619b

Please sign in to comment.