fix: adding MySQL Actions
This commit is contained in:
parent
d69b960d04
commit
f9084ac565
1 changed files with 6 additions and 10 deletions
14
.github/workflows/exec.yml
vendored
14
.github/workflows/exec.yml
vendored
|
@ -24,19 +24,15 @@ jobs:
|
|||
steps:
|
||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
- uses: actions/checkout@v3
|
||||
# Runs a single command using the runners shell
|
||||
- name: Install MySQL
|
||||
run: sudo apt update && sudo apt install -y mysql-server-8.0 mysql-client-8.0
|
||||
- uses: mirromutth/mysql-action@v1.1
|
||||
with:
|
||||
mysql root password: root
|
||||
|
||||
# Runs a set of commands using the runners shell
|
||||
- name: Run a multi-line script
|
||||
- name: Cloning test_db dataset
|
||||
run: |
|
||||
sudo service mysql start
|
||||
sudo service mysql status
|
||||
|
||||
git clone https://github.com/datacharmer/test_db.git
|
||||
cd test_db
|
||||
mysql < ./employees.sql
|
||||
mysql < ./employees.sql
|
||||
cd -
|
||||
rm -rf test_db
|
||||
# Runs a single command using the runners shell
|
||||
|
|
Loading…
Reference in a new issue