From 04f50a0b93915a3dac7d3e5303bd6755b6f43a1f Mon Sep 17 00:00:00 2001 From: Jean-Marie Renouard Date: Tue, 14 Mar 2023 20:50:32 +0000 Subject: [PATCH] fix: reordering tasks --- .github/workflows/exec.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/exec.yml b/.github/workflows/exec.yml index 03a5455..01ae0d4 100644 --- a/.github/workflows/exec.yml +++ b/.github/workflows/exec.yml @@ -29,8 +29,12 @@ jobs: - name: Set up MySQL uses: mirromutth/mysql-action@v1.1 with: - mysql root password: root - + mysql root password: "root" + mysql version: "8.0" + - name: Injecting credentials + run: | + echo -e "[client]\nuser=root\npassword=root\nhost=127.0.0.1\nprotocol=TCP" > $HOME/.my.cnf + - name: Cloning test_db dataset run: | git clone https://github.com/datacharmer/test_db.git @@ -39,8 +43,8 @@ jobs: run: | cd test_db netstat -ltpn - #sudo mysql -e 'select version();' - mysql --protocol=TCP -uroot -proot test< ./employees.sql + mysql -e 'select version();' + mysql test< ./employees.sql cd - rm -rf test_db # Runs a single command using the runners shell