Skip to content

Commit 6bbf6c8

Browse files
committed
feat: ci.yml
1 parent 592eef1 commit 6bbf6c8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
mysql:
1515
image: mysql:8.0
1616
env:
17-
MYSQL_DATABASE: shopnow
18-
MYSQL_ROOT_PASSWORD: root
17+
MYSQL_DATABASE: ${{ secrets.DB_NAME }}
18+
MYSQL_ROOT_PASSWORD: ${{ secrets.DB_PASSWORD }}
1919
ports:
2020
- 3306:3306
2121
options: --health-cmd="mysqladmin ping --silent" --health-interval=10s --health-timeout=5s --health-retries=3
@@ -41,9 +41,9 @@ jobs:
4141

4242
- name: wait for MySQL to be ready
4343
run: |
44-
until mysql ping -h "127.0.0.1" --silent; do
44+
until mysqladmin ping -h "$DB_HOST" -P "$DB_PORT" -u"$DB_USER" -p"$DB_PASSWORD" --silent; do
4545
echo "Waiting for MySQL to be ready..."
46-
sleep 2
46+
sleep 5
4747
done
4848
4949
- name: Install dependencies

0 commit comments

Comments
 (0)