From c54062e2d9cea0946f38414dcb51036e1e551c85 Mon Sep 17 00:00:00 2001 From: Subhamoy Biswas Date: Sun, 3 Dec 2023 19:02:54 +0530 Subject: [PATCH] (CI/CD): test database connection --- .github/workflows/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d923de2..2a56b2b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,7 +1,7 @@ on: push: branches: - - main + - main name: 🚀 Deploy website on server jobs: web-deploy: @@ -11,6 +11,9 @@ jobs: - name: 🚚 Get latest code uses: actions/checkout@v3 + - name: 📦 Update Database + run: mysql -h ${{ secrets.DB_HOST }} --port 3306 -u${{ secrets.DB_USERNAME }} -p${{ secrets.DB_PASSWORD }} -e "SHOW DATABASES" + - name: 📂 Sync files uses: SamKirkland/FTP-Deploy-Action@v4.3.4 with: