From 3b3fa00b76552b699751cd1dc26c117fb2c600a8 Mon Sep 17 00:00:00 2001 From: Jean-Marie Renouard Date: Tue, 14 Mar 2023 19:12:47 +0000 Subject: [PATCH] feat: adding new data and mysqltuner.pl calls --- .github/workflows/exec.yml | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/.github/workflows/exec.yml b/.github/workflows/exec.yml index 389ed4e..a9c6035 100644 --- a/.github/workflows/exec.yml +++ b/.github/workflows/exec.yml @@ -28,12 +28,26 @@ jobs: - name: Install MySQL run: sudo apt update && sudo apt install -y mysql-server-8.0 mysql-client-8.0 - # Runs a single command using the runners shell - - name: Run a one-line script - run: perl ./mysqltuner.pl --help - # Runs a set of commands using the runners shell - name: Run a multi-line script run: | - echo Add other actions to build, - echo test, and deploy your project. + sudo service start mysql + sudo service status mysql + + git clone https://github.com/datacharmer/test_db.git + cd test_db + sudo mysql -u root < employees.sql + cd - + rm -rf test_db + + # Runs a single command using the runners shell + - name: Run help mode + run: perl ./mysqltuner.pl --help + + # Runs a single command using the runners shell + - name: Run verbose mode + run: sudo perl ./mysqltuner.pl --verbose + + # Runs a single command using the runners shell + - name: Run verbose mode with dumpdir result + run: sudo perl ./mysqltuner.pl --verbose --dumpdir=result