test: mysql command
This commit is contained in:
parent
fe300aae1b
commit
2223372468
1 changed files with 7 additions and 2 deletions
9
.github/workflows/exec.yml
vendored
9
.github/workflows/exec.yml
vendored
|
@ -1,6 +1,6 @@
|
||||||
# This is a basic workflow to help you get started with Actions
|
# This is a basic workflow to help you get started with Actions
|
||||||
|
|
||||||
name: CI
|
name: CI for MySQL Tuner
|
||||||
|
|
||||||
# Controls when the workflow will run
|
# Controls when the workflow will run
|
||||||
on:
|
on:
|
||||||
|
@ -34,10 +34,15 @@ jobs:
|
||||||
- name: Cloning test_db dataset
|
- name: Cloning test_db dataset
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/datacharmer/test_db.git
|
git clone https://github.com/datacharmer/test_db.git
|
||||||
|
|
||||||
|
- name: Injecting test_db dataset
|
||||||
|
run: |
|
||||||
cd test_db
|
cd test_db
|
||||||
|
netstat -ltpn
|
||||||
|
sudo mysql -e 'select version();'
|
||||||
mysql -h 127.0.0.1 -P3306 -uroot -proot test< ./employees.sql
|
mysql -h 127.0.0.1 -P3306 -uroot -proot test< ./employees.sql
|
||||||
cd -
|
cd -
|
||||||
rm -rf test_db
|
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
|
||||||
run: perl ./mysqltuner.pl --help
|
run: perl ./mysqltuner.pl --help
|
||||||
|
|
Loading…
Reference in a new issue