fix: fixing examples generation

This commit is contained in:
Jean-Marie Renouard 2023-03-23 13:54:31 +00:00
parent 964b80943d
commit 8b302e8187

View file

@ -36,12 +36,15 @@ jobs:
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 - name: Test database is Up and Running
run: | run: |
sleep 5s sleep 5s
cd test_db cd test_db
netstat -ltpn netstat -ltpn
mysql -e 'select version();' mysql -e 'select version();'
- name: Injecting test_db dataset
run: |
mysql -e 'CREATE DATABASE data;' mysql -e 'CREATE DATABASE data;'
mysql data< ./employees.sql mysql data< ./employees.sql
cd - cd -
@ -49,9 +52,13 @@ jobs:
# 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: |
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 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 # Runs a single command using the runners shell
- name: Run the Action - name: Run the Action
uses: devops-infra/action-commit-push@master uses: devops-infra/action-commit-push@master