Skip to content

Commit

Permalink
Can we create the database from the command line?
Browse files Browse the repository at this point in the history
  • Loading branch information
Carifio24 committed Sep 29, 2024
1 parent d763336 commit 37f8893
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 37f8893

Please sign in to comment.