Skip to content

Commit

Permalink
ci: Add steps to create user and import database
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDave1999 committed Oct 18, 2024
1 parent 78e708c commit 8e64ad3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ jobs:
uses: ankane/setup-mariadb@v1
with:
database: gamemode
run: |
mariadb -uroot -e "CREATE USER 'admin'@'localhost' IDENTIFIED BY 'admin'"
mariadb -uroot -e "GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost'"
mariadb -uroot -e "FLUSH PRIVILEGES"
mariadb -uroot gamemode < ./scripts/mariadb/gamemode.sql
- name: Create user with mariadb
run: |
mariadb -uroot -e "CREATE USER 'admin'@'localhost' IDENTIFIED BY 'admin'"
mariadb -uroot -e "GRANT ALL PRIVILEGES ON *.* TO 'admin'@'localhost'"
mariadb -uroot -e "FLUSH PRIVILEGES"
- name: Import database with mariadb
run: mariadb -uroot gamemode < ./scripts/mariadb/gamemode.sql
- name: Check MariaDB version
run: mariadb --version
- name: Check SQLite version
Expand Down

0 comments on commit 8e64ad3

Please sign in to comment.