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 represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
steps:
|
||||||
- uses: .github/actions/install_db
|
- name: Setup MySQL Tuner repository
|
||||||
with:
|
uses: actions/checkout@v3
|
||||||
MYSQL_VERSION: "8.0"
|
|
||||||
|
|
||||||
|
- 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
|
# Runs a single command using the runners shell
|
||||||
- name: Run verbose mode with dumpdir result
|
- name: Run verbose mode with dumpdir result
|
||||||
run: |
|
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 represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
- name: Setup MySQL Tuner repository
|
||||||
- uses: .github/actions/pull_and_mysql
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up MySQL
|
||||||
|
uses: mirromutth/mysql-action@v1.1
|
||||||
with:
|
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
|
- name: Run help mode
|
||||||
run: |
|
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 represent a sequence of tasks that will be executed as part of the job
|
||||||
steps:
|
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:
|
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
|
# Runs a single command using the runners shell
|
||||||
- name: Run help mode
|
- name: Run help mode
|
||||||
|
|
Loading…
Reference in a new issue