From e29a980b455fcec4023e1fce012637bec0c4f6f1 Mon Sep 17 00:00:00 2001 From: Carifio24 Date: Sun, 29 Sep 2024 13:19:09 -0400 Subject: [PATCH] Can we create the database from the command line? --- .github/workflows/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4348363..972765e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,6 +25,11 @@ jobs: - name: Start MySQL service run: sudo systemctl start mysql.service + - name: Create database + run: | + echo "CREATE DATABASE IF NOT EXISTS test;" < setup.sql + sudo mysql -h 127.0.0.1 -uroot -proot < setup.sql + - name: Test env: TEST_DB_HOSTNAME: ${{ secrets.TEST_DB_HOSTNAME }}