fix: fixing examples generation
This commit is contained in:
parent
964b80943d
commit
8b302e8187
1 changed files with 9 additions and 2 deletions
11
.github/workflows/generate_examples.yml
vendored
11
.github/workflows/generate_examples.yml
vendored
|
@ -36,12 +36,15 @@ jobs:
|
|||
run: |
|
||||
git clone https://github.com/datacharmer/test_db.git
|
||||
|
||||
- name: Injecting test_db dataset
|
||||
- name: Test database is Up and Running
|
||||
run: |
|
||||
sleep 5s
|
||||
cd test_db
|
||||
netstat -ltpn
|
||||
mysql -e 'select version();'
|
||||
|
||||
- name: Injecting test_db dataset
|
||||
run: |
|
||||
mysql -e 'CREATE DATABASE data;'
|
||||
mysql data< ./employees.sql
|
||||
cd -
|
||||
|
@ -49,9 +52,13 @@ jobs:
|
|||
# Runs a single command using the runners shell
|
||||
- name: Run verbose mode with dumpdir result
|
||||
run: |
|
||||
mkdir -p ./examples/github/result
|
||||
mkdir -p ./examples/github/result/mysql/${{ matrix.MYSQL_VERSION }}
|
||||
sudo perl ./mysqltuner.pl --user=root --pass=root --protocol tcp --verbose --dumpdir=./examples/github/result/mysql/${{ matrix.MYSQL_VERSION }} --json | tee -a ./examples/github/result/mysql/${{ matrix.MYSQL_VERSION }}/result.json
|
||||
|
||||
- name: Adding examples to Git
|
||||
run: |
|
||||
git add ./examples/github/result/mysql/${{ matrix.MYSQL_VERSION }}/*
|
||||
|
||||
# Runs a single command using the runners shell
|
||||
- name: Run the Action
|
||||
uses: devops-infra/action-commit-push@master
|
||||
|
|
Loading…
Reference in a new issue