We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 592eef1 commit 6bbf6c8Copy full SHA for 6bbf6c8
.github/workflows/ci.yml
@@ -14,8 +14,8 @@ jobs:
14
mysql:
15
image: mysql:8.0
16
env:
17
- MYSQL_DATABASE: shopnow
18
- MYSQL_ROOT_PASSWORD: root
+ MYSQL_DATABASE: ${{ secrets.DB_NAME }}
+ MYSQL_ROOT_PASSWORD: ${{ secrets.DB_PASSWORD }}
19
ports:
20
- 3306:3306
21
options: --health-cmd="mysqladmin ping --silent" --health-interval=10s --health-timeout=5s --health-retries=3
@@ -41,9 +41,9 @@ jobs:
41
42
- name: wait for MySQL to be ready
43
run: |
44
- until mysql ping -h "127.0.0.1" --silent; do
+ until mysqladmin ping -h "$DB_HOST" -P "$DB_PORT" -u"$DB_USER" -p"$DB_PASSWORD" --silent; do
45
echo "Waiting for MySQL to be ready..."
46
- sleep 2
+ sleep 5
47
done
48
49
- name: Install dependencies
0 commit comments