fix: adding MySQL Actions

This commit is contained in:
Jean-Marie Renouard 2023-03-14 19:47:32 +00:00
parent d69b960d04
commit f9084ac565

View file

@ -24,19 +24,15 @@ 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
cd - cd -
rm -rf test_db rm -rf test_db
# Runs a single command using the runners shell # Runs a single command using the runners shell