From f9084ac565e9d4aaab8c179b1395f52fbcee7cca Mon Sep 17 00:00:00 2001 From: Jean-Marie Renouard Date: Tue, 14 Mar 2023 19:47:32 +0000 Subject: [PATCH] fix: adding MySQL Actions --- .github/workflows/exec.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/exec.yml b/.github/workflows/exec.yml index 49c2fd4..1a42670 100644 --- a/.github/workflows/exec.yml +++ b/.github/workflows/exec.yml @@ -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 - - # Runs a set of commands using the runners shell - - name: Run a multi-line script + - uses: mirromutth/mysql-action@v1.1 + with: + mysql root password: root + + - 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