File tree Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Expand file tree Collapse file tree 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -41,17 +41,15 @@ jobs:
41
41
ports :
42
42
- 3306
43
43
env :
44
+ MARIADB_ROOT_PASSWORD : root
45
+ MARIADB_DATABASE : with_advisory_lock_trilogy_test
44
46
MARIADB_USER : with_advisory
45
47
MARIADB_PASSWORD : with_advisory_pass
46
- MARIADB_DATABASE : with_advisory_lock_trilogy_test
47
- MARIADB_ROOT_PASSWORD : root_pass
48
- MARIADB_MYSQL_LOCALHOST_USER : 1
49
- MARIADB_MYSQL_LOCALHOST_GRANTS : USAGE
50
48
options : >-
51
- --health-cmd="healthcheck.sh --su-mysql --connect --innodb_initialized "
49
+ --health-cmd="mysqladmin ping -h 127.0.0.1 -uroot -proot || exit 1 "
52
50
--health-interval=10s
53
51
--health-timeout=5s
54
- --health-retries=10
52
+ --health-retries=12
55
53
strategy :
56
54
fail-fast : false
57
55
matrix :
76
74
bundler-cache : true
77
75
rubygems : latest
78
76
79
- - name : Wait for MariaDB
80
- run : |
81
- until nc -z 127.0.0.1 ${{ job.services.mariadb.ports[3306] }}; do
82
- echo "Waiting for MariaDB to be ready..."
83
- sleep 1
84
- done
85
- echo "MariaDB is ready"
86
77
87
78
- name : Setup test databases
88
79
env :
You can’t perform that action at this time.
0 commit comments