Skip to content

Commit 4dfb6eb

Browse files
authored
fix(ci): wait for mysql to initialize (#70)
* chore(ci): bump mysql to 8.4 * fix(ci): wait for mysql to be ready * chore(ci): tweak mysql healthcheck
1 parent cb7dc05 commit 4dfb6eb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/rspec-tests.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,16 @@ jobs:
4343

4444
services:
4545
mysql:
46-
image: mysql:8.2
46+
image: mysql:8.4
4747
ports: ["3306:3306"]
4848
env:
4949
MYSQL_ROOT_PASSWORD: password
5050
MYSQL_DATABASE: sn_filterable_test
51+
options: >-
52+
--health-cmd="mysqladmin ping"
53+
--health-interval=10s
54+
--health-timeout=10s
55+
--health-retries=5
5156
5257
steps:
5358
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)