fix: revert changes
This commit is contained in:
parent
0a80fc9d1b
commit
b33c70338c
5 changed files with 63 additions and 49 deletions
30
.github/actions/install_db/actions.yml
vendored
30
.github/actions/install_db/actions.yml
vendored
|
@ -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
|
11
.github/actions/pull_and_mysql/actions.yml
vendored
11
.github/actions/pull_and_mysql/actions.yml
vendored
|
@ -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 }}"
|
29
.github/workflows/generate_examples.yml
vendored
29
.github/workflows/generate_examples.yml
vendored
|
@ -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: |
|
||||
|
|
14
.github/workflows/pull_request.yml
vendored
14
.github/workflows/pull_request.yml
vendored
|
@ -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: |
|
||||
|
|
28
.github/workflows/run_mt_with_db.yml
vendored
28
.github/workflows/run_mt_with_db.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue