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