fix: revert changes

This commit is contained in:
Jean-Marie Renouard 2023-03-23 10:48:23 +00:00
parent 0a80fc9d1b
commit b33c70338c
5 changed files with 63 additions and 49 deletions

View file

@ -1,30 +0,0 @@
runs:
using: "composite"
steps:
- name: Setup MySQL Tuner repository
uses: actions/checkout@v3
- name: Set up MySQL
uses: mirromutth/mysql-action@v1.1
with:
mysql root password: "root"
mysql version: "${{ inputs.MYSQL_VERSION }}"
- 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
- name: Injecting test_db dataset
run: |
sleep 5s
cd test_db
netstat -ltpn
mysql -e 'select version();'
mysql -e 'CREATE DATABASE data;'
mysql data< ./employees.sql
cd -
rm -rf test_db

View file

@ -1,11 +0,0 @@
runs:
using: "composite"
steps:
- name: Setup MySQL Tuner repository
uses: actions/checkout@v3
- name: Set up MySQL
uses: mirromutth/mysql-action@v1.1
with:
mysql root password: "root"
mysql version: "${{ inputs.MYSQL_VERSION }}"

View file

@ -16,10 +16,33 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: .github/actions/install_db
with:
MYSQL_VERSION: "8.0"
- name: Setup MySQL Tuner repository
uses: actions/checkout@v3
- name: Set up MySQL
uses: mirromutth/mysql-action@v1.1
with:
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
- name: Injecting test_db dataset
run: |
sleep 5s
cd test_db
netstat -ltpn
mysql -e 'select version();'
mysql -e 'CREATE DATABASE data;'
mysql data< ./employees.sql
cd -
rm -rf test_db
# Runs a single command using the runners shell
- name: Run verbose mode with dumpdir result
run: |

View file

@ -22,10 +22,18 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: .github/actions/pull_and_mysql
- name: Setup MySQL Tuner repository
uses: actions/checkout@v3
- name: Set up MySQL
uses: mirromutth/mysql-action@v1.1
with:
MYSQL_VERSION: "8.0"
mysql root password: "root"
mysql version: "${{ inputs.MYSQL_VERSION }}"
- name: Injecting credentials
run: |
echo -e "[client]\nuser=root\npassword=root\nhost=127.0.0.1\nprotocol=TCP" > $HOME/.my.cnf
- name: Run help mode
run: |

View file

@ -16,9 +16,33 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: .github/actions/install_db
- name: Setup MySQL Tuner repository
uses: actions/checkout@v3
- name: Set up MySQL
uses: mirromutth/mysql-action@v1.1
with:
MYSQL_VERSION: "8.0"
mysql root password: "root"
mysql version: "${{ inputs.MYSQL_VERSION }}"
- 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
- name: Injecting test_db dataset
run: |
sleep 5s
cd test_db
netstat -ltpn
mysql -e 'select version();'
mysql -e 'CREATE DATABASE data;'
mysql data< ./employees.sql
cd -
rm -rf test_db
# Runs a single command using the runners shell
- name: Run help mode